Skip to content
Permalink
Browse files
use strict comparison
  • Loading branch information
michield committed Feb 3, 2020
1 parent a545c4a commit 3576011edd4cf5566dc2a6f07ddbaa85bc4cac8d
Showing with 4 additions and 3 deletions.
  1. +4 −3 public_html/lists/admin/phpListAdminAuthentication.php
@@ -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'),

0 comments on commit 3576011

Please sign in to comment.