mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 09:34:54 +02:00
PHP8 Compatibility and code cleanup.
This commit is contained in:
@@ -315,10 +315,10 @@ class ExtendedPasswordHandler extends UserHandler
|
||||
{
|
||||
$hash = $stored_hash;
|
||||
}
|
||||
if(strlen($hash) !== 32)
|
||||
{
|
||||
// if(strlen($hash) !== 32)
|
||||
// {
|
||||
//return PASSWORD_INVALID;
|
||||
}
|
||||
// }
|
||||
|
||||
$pwHash = $salt ? md5($salt.$pword) : md5($pword);
|
||||
$stored_hash = $hash;
|
||||
|
@@ -274,10 +274,10 @@ class auth_login extends alt_auth_base
|
||||
return AUTH_NOUSER; // Bit debateable what to return if this happens
|
||||
}
|
||||
}
|
||||
else // Probably a bit strange if we don't get any info back - but possible
|
||||
{
|
||||
//else // Probably a bit strange if we don't get any info back - but possible
|
||||
// {
|
||||
// echo "No results!<br />";
|
||||
}
|
||||
// }
|
||||
|
||||
return AUTH_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user