From: Alexandre Emsenhuber Date: Fri, 8 Feb 2013 07:21:29 +0000 (+0100) Subject: Mention that User::setInternalPassword() accepts null as password string X-Git-Tag: 1.31.0-rc.0~20633^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=7ed06f3b0a44fae70ec145535635510252238795;p=lhc%2Fweb%2Fwiklou.git Mention that User::setInternalPassword() accepts null as password string This allows to set an invalid hash preventing the user from logging in. Change-Id: I8869eda42fd902dd26660c63e5f213b63e7e77ef --- diff --git a/includes/User.php b/includes/User.php index a73414c9d3..65d8628676 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2046,7 +2046,9 @@ class User { /** * Set the password and reset the random token unconditionally. * - * @param $str String New password to set + * @param $str string|null New password to set or null to set an invalid + * password hash meaning that the user will not be able to log in + * through the web interface. */ public function setInternalPassword( $str ) { $this->load();