ActionParser.php

This commit is contained in:
olivaq@gmail.com committed 2011-01-25 10:26:49 +01:00
commit fc6c81a84b
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 {