1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00
This commit is contained in:
Michael Save 2013-01-30 05:07:09 +11:00
parent 5661e32b1c
commit 2051018ba1

View File

@ -100,8 +100,8 @@ if (isset($_COOKIE[$config['cookies']['mod']])) {
if (count($cookie) != 3) {
// Malformed cookies
destroyCookies();
// error($config['error']['malformed']);
mod_login();
exit;
}
$query = prepare("SELECT `id`, `type`, `boards`, `password` FROM `mods` WHERE `username` = :username LIMIT 1");
@ -113,8 +113,8 @@ if (isset($_COOKIE[$config['cookies']['mod']])) {
if ($cookie[1] !== mkhash($cookie[0], $user['password'], $cookie[2])) {
// Malformed cookies
destroyCookies();
// error($config['error']['malformed']);
mod_login();
exit;
}
$mod = array(