Test for sha1

This commit is contained in:
Sjur Hernes committed 2011-01-24 20:32:41 +01:00
1 parent 5d321bc299
commit a7744f6955
1 file changed
+9 -1
+9 -1
View File
@@ -586,7 +586,15 @@ class ActionParser {
if ($result->numRows() > 0) {
$row = $result->fetchRow(DB_FETCHMODE_ASSOC);
$_SESSION['valid-user'] = $row['id'];
if ($row['passwordReset'] == 1) {
// SHA1
if ($_GET['debug']){
echo "{SHA}" . base64_encode(pack("H", hash('sha1', $conn->quoteSmart(scriptParam('password')))));
die("Jeg skammer meg over at dette er skrevet i vim - Sjur");
}
if ($row['passwordReset'] == 1) {
$GLOBALS['extraScriptParams']['page'] = "reset-password";
}
} else {