Changeset:
        580cff0d105b
        
https://sourceforge.net/p/mrbs/hg-code/ci/580cff0d105b2aff045328e0c5202388937282f2
Author:
        Campbell Morrison <[email protected]>
Date:
        Thu Aug 18 13:33:44 2016 +0100
Log message:

Fixed bug preventing the password being set to '0' (not that you'd want to do 
that)

diffstat:

 web/edit_users.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r e57d8eb0d7db -r 580cff0d105b web/edit_users.php
--- a/web/edit_users.php        Thu Aug 18 13:21:25 2016 +0100
+++ b/web/edit_users.php        Thu Aug 18 13:33:44 2016 +0100
@@ -573,7 +573,7 @@
           // so don't do anything; otherwise calculate the hash.
           // Note: we don't put the password in the query string
           // for security reasons.
-          if (!empty($password0))
+          if ($password0 !== '')
           {
             if (PasswordCompat\binary\check())
             {
@@ -649,7 +649,7 @@
           // check that the password conforms to the password policy
           // if it's a new user (Id < 0), or else it's an existing user
           // trying to change their password
-          if (($Id <0) || !empty($password0))
+          if (($Id <0) || ($password0 !== ''))
           {
             if (!validate_password($password0))
             {

------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to