diff options
| author | Marcin Łabanowski <marcin@6irc.net> | 2013-01-29 14:31:35 +0100 |
|---|---|---|
| committer | Marcin Łabanowski <marcin@6irc.net> | 2013-01-29 14:31:35 +0100 |
| commit | b4efebae5551c8d8046a6755412104247a37c1bd (patch) | |
| tree | 91b86874c6a6adb7437eae42ac1f850ce495f62d /inc/mod/auth.php | |
| parent | cac9b868244345d6ab7e097aadfb083da98233b5 (diff) | |
| parent | 45f9b51ad85e087bafaa83ddb3d6a3547cafe315 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'inc/mod/auth.php')
| -rw-r--r-- | inc/mod/auth.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/mod/auth.php b/inc/mod/auth.php index f594af4b..8fb01ecb 100644 --- a/inc/mod/auth.php +++ b/inc/mod/auth.php @@ -49,7 +49,7 @@ function login($username, $password, $makehash=true) { 'username' => $username, 'hash' => mkhash($username, $password), 'boards' => explode(',', $user['boards']) - ); + ); } else return false; } @@ -108,7 +108,7 @@ if (isset($_COOKIE[$config['cookies']['mod']])) { $user = $query->fetch(); // validate password hash - if ($cookie[1] != mkhash($cookie[0], $user['password'], $cookie[2])) { + if ($cookie[1] !== mkhash($cookie[0], $user['password'], $cookie[2])) { // Malformed cookies destroyCookies(); error($config['error']['malformed']); |
