We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcc716 commit f227fb7Copy full SHA for f227fb7
interface/web/login/index.php
@@ -197,6 +197,13 @@ public function render() {
197
//* The password is crypt-md5 encrypted
198
$salt = '$1$'.substr($saved_password, 3, 8).'$';
199
200
+ if(crypt(stripslashes($passwort), $salt) != $saved_password) {
201
+ $user = false;
202
+ }
203
+ } elseif(substr($saved_password, 0, 3) == '$5$') {
204
+ //* The password is crypt-md5 encrypted
205
+ $salt = '$5$'.substr($saved_password, 3, 16).'$';
206
+
207
if(crypt(stripslashes($passwort), $salt) != $saved_password) {
208
$user = false;
209
}
0 commit comments