php-censor/src/PHPCensor/Security/Authentication/LoginPasswordProvider.php

31 lines
679 B
PHP
Raw Normal View History

<?php
/**
* PHPCI - Continuous Integration for PHP
*
2016-12-29 06:43:02 +01:00
* @copyright Copyright 2015, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
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 LoginPasswordProvider extends UserProvider
{
/** Verify if the supplied password matches the user's one.
*
* @param User $user
* @param string $password
*
* @return bool
*/
public function verifyPassword(User $user, $password);
}