diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/Base.php b/src/opnsense/mvc/app/library/OPNsense/Auth/Base.php index 158d80c95..f0d52ad85 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/Base.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/Base.php @@ -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) diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/Local.php b/src/opnsense/mvc/app/library/OPNsense/Auth/Local.php index b0f7569a9..2c1fd853e 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/Local.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/Local.php @@ -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) { diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php b/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php index 955333a1e..a9d4e1783 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php @@ -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) {