php-censor/src/PHPCensor/Security/Authentication/LoginPasswordProviderInterface.php
2017-03-12 11:40:40 +07:00

23 lines
485 B
PHP

<?php
namespace PHPCensor\Security\Authentication;
use PHPCensor\Model\User;
/**
* User provider which authenticiation using a password.
*
* @author Adirelle <adirelle@gmail.com>
*/
interface LoginPasswordProviderInterface extends UserProviderInterface
{
/** Verify if the supplied password matches the user's one.
*
* @param User $user
* @param string $password
*
* @return bool
*/
public function verifyPassword(User $user, $password);
}