Skip to content

Commit

Permalink
use strict comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
michield committed Feb 3, 2020
1 parent a545c4a commit 3576011
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public_html/lists/admin/phpListAdminAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ public function validateLogin($login, $password)
if ($admindata['disabled']) {
return array(0, s('your account has been disabled'));
}
if (//Password validation.
!empty($passwordDB) && $encryptedPass == $passwordDB
)
if (
!empty($passwordDB) && $encryptedPass === $passwordDB
) {
return array($admindata['id'], 'OK');
}
else {
if (!empty($GLOBALS['admin_auth_module'])) {
Error(s('Admin authentication has changed, please update your admin module'),
Expand Down

0 comments on commit 3576011

Please sign in to comment.