php-censor/src/Security/Authentication/LoginPasswordProviderInterface.php

24 lines
497 B
PHP
Raw Normal View History

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