X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/62c99bb3ff5dee600a20fe6749f28c45b6cce7fd..0cc681d32bf51c485d54e49f50dd1d0f74b35974:/auth.inc.php diff --git a/auth.inc.php b/auth.inc.php index b8026f9..94f0dcc 100644 --- a/auth.inc.php +++ b/auth.inc.php @@ -16,7 +16,12 @@ function login($inuser, $inpass = NULL) # verify password $authhash = md5($usertest); if (isset($inpass)) { - if (!password_verify($inpass, $usertest)) return; + if (substr($usertest, 0, 1) == '$') { + if (!password_verify($inpass, $usertest)) return; + } + else { + if ($inpass !== $usertest) return; + } } else { if ($inauth !== $authhash) return;