Skip to content

Commit

Permalink
Merge branch '2017.12' into 2018.09
Browse files Browse the repository at this point in the history
  • Loading branch information
glye committed Oct 31, 2018
2 parents bafa1a7 + 13f03a2 commit 7f56928
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kernel/classes/datatypes/ezuser/ezuser.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,11 @@ protected static function loginFailed( $userID = false, $login )
*/
protected static function _loginUser( $login, $password, $authenticationMatch = false )
{
if ( $login == '' || $password == '' )
{
return false;
}

$http = eZHTTPTool::instance();
$db = eZDB::instance();

Expand Down Expand Up @@ -821,6 +826,7 @@ protected static function _loginUser( $login, $password, $authenticationMatch =
WHERE ( $loginText ) AND
ezcontentobject.status='$contentObjectStatus' AND
ezcontentobject.id=contentobject_id AND
password_hash_type!=0 AND
( ( password_hash_type!=4 ) OR
( password_hash_type=4 AND
password_hash=PASSWORD('$passwordEscaped') ) )";
Expand All @@ -831,6 +837,7 @@ protected static function _loginUser( $login, $password, $authenticationMatch =
password_hash_type, email, login
FROM ezuser, ezcontentobject
WHERE ( $loginText )
AND password_hash_type!=0
AND ezcontentobject.status='$contentObjectStatus'
AND ezcontentobject.id=contentobject_id";
}
Expand Down

0 comments on commit 7f56928

Please sign in to comment.