jenkins-bot has submitted this change and it was merged.

Change subject: Mention that User::setInternalPassword() accepts null as 
password string
......................................................................


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
---
M includes/User.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Parent5446: Looks good to me, but someone else must approve
  Hashar: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/User.php b/includes/User.php
index a73414c..65d8628 100644
--- a/includes/User.php
+++ b/includes/User.php
@@ -2046,7 +2046,9 @@
        /**
         * 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();

-- 
To view, visit https://gerrit.wikimedia.org/r/48094
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8869eda42fd902dd26660c63e5f213b63e7e77ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to