Skip to content

Commit 4c215e8

Browse files
authored
Check smd5 password fix (#222)
Closes #221
1 parent 226a76d commit 4c215e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2425,7 +2425,7 @@ function password_check($cryptedpassword,$plainpassword,$attribute='userpassword
24252425
case 'smd5':
24262426
$hash = base64_decode($cryptedpassword);
24272427
$salt = substr($hash,16);
2428-
$new_hash = base64_encode(md5($plainpassword.$salt).$salt, true);
2428+
$new_hash = base64_encode(md5($plainpassword.$salt, true).$salt);
24292429

24302430
if (strcmp($cryptedpassword,$new_hash) == 0)
24312431
return true;

0 commit comments

Comments
 (0)