auth: typo and doc

This commit is contained in:
Franco Fichtner 2018-05-25 10:02:27 +02:00
parent ecc15a7680
commit fcd4ed3883
3 changed files with 8 additions and 3 deletions

View File

@ -78,8 +78,9 @@ abstract class Base
}
/**
* check if the user should change his or hers password, needs implementation if it applies.
* check if the user should change his or her password, needs implementation if it applies.
* @param string $username username to check
* @param string $password password to check
* @return boolean
*/
public function shouldChangePassword($username, $password = null)

View File

@ -106,11 +106,13 @@ class Local extends Base implements IAuthConnector
}
/**
* check if the user should change his or hers password,
* check if the user should change his or her password,
* calculated by the time difference of the last pwd change
* and other criteria through checkPolicy() if password was
* given
* @param string $username username to check
* @param string $password password to check
* @return boolean
*/
public function shouldChangePassword($username, $password = null)
{

View File

@ -174,8 +174,10 @@ trait TOTP
}
/**
* check if the user should change his or hers password
* check if the user should change his or her password
* @param string $username username to check
* @param string $password password to check
* @return boolean
*/
public function shouldChangePassword($username, $password = null)
{