2015-03-08 18:53:08 +01:00
|
|
|
<?php
|
|
|
|
|
2016-12-29 06:43:02 +01:00
|
|
|
namespace PHPCensor\Security\Authentication;
|
2015-03-08 18:53:08 +01:00
|
|
|
|
2016-12-29 06:43:02 +01:00
|
|
|
use PHPCensor\Model\User;
|
2015-03-08 18:53:08 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* User provider which authenticiation using a password.
|
|
|
|
*
|
2016-12-29 06:43:02 +01:00
|
|
|
* @author Adirelle <adirelle@gmail.com>
|
2015-03-08 18:53:08 +01:00
|
|
|
*/
|
2017-01-22 12:05:24 +01:00
|
|
|
interface LoginPasswordProviderInterface extends UserProviderInterface
|
2015-03-08 18:53:08 +01:00
|
|
|
{
|
|
|
|
/** Verify if the supplied password matches the user's one.
|
|
|
|
*
|
|
|
|
* @param User $user
|
|
|
|
* @param string $password
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function verifyPassword(User $user, $password);
|
|
|
|
}
|