Skip to content
Snippets Groups Projects
Commit c13ed298 authored by ntoniazzi's avatar ntoniazzi Committed by GitHub
Browse files

Fix APR1_MD5::check call

$password and $crypted where swapped
parent 69e9aa24
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ class sspmod_authcrypt_Auth_Source_Htpasswd extends sspmod_core_Auth_UserPassBas ...@@ -80,7 +80,7 @@ class sspmod_authcrypt_Auth_Source_Htpasswd extends sspmod_core_Auth_UserPassBas
} }
// Apache's custom MD5 // Apache's custom MD5
if(APR1_MD5::check($crypted, $password)) { if(APR1_MD5::check($password, $crypted)) {
SimpleSAML\Logger::debug('User '. $username . ' authenticated successfully'); SimpleSAML\Logger::debug('User '. $username . ' authenticated successfully');
return $attributes; return $attributes;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment