Commit a93bfca5 authored by Till Brehm's avatar Till Brehm

Merge branch 'work-3.0.5.4p3' of git.ispconfig.org:pixcept/ispconfig3-mods into work-3.0.5.4p3

parents fa029ba0 0e73fca2
......@@ -197,6 +197,13 @@ class login_index {
//* The password is crypt-md5 encrypted
$salt = '$1$'.substr($saved_password, 3, 8).'$';
if(crypt(stripslashes($passwort), $salt) != $saved_password) {
$user = false;
}
} elseif(substr($saved_password, 0, 3) == '$5$') {
//* The password is crypt-sha256 encrypted
$salt = '$5$'.substr($saved_password, 3, 16).'$';
if(crypt(stripslashes($passwort), $salt) != $saved_password) {
$user = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment