mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 09:20:58 +01:00
...
This commit is contained in:
parent
5661e32b1c
commit
2051018ba1
@ -100,8 +100,8 @@ if (isset($_COOKIE[$config['cookies']['mod']])) {
|
|||||||
if (count($cookie) != 3) {
|
if (count($cookie) != 3) {
|
||||||
// Malformed cookies
|
// Malformed cookies
|
||||||
destroyCookies();
|
destroyCookies();
|
||||||
// error($config['error']['malformed']);
|
|
||||||
mod_login();
|
mod_login();
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = prepare("SELECT `id`, `type`, `boards`, `password` FROM `mods` WHERE `username` = :username LIMIT 1");
|
$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])) {
|
if ($cookie[1] !== mkhash($cookie[0], $user['password'], $cookie[2])) {
|
||||||
// Malformed cookies
|
// Malformed cookies
|
||||||
destroyCookies();
|
destroyCookies();
|
||||||
// error($config['error']['malformed']);
|
|
||||||
mod_login();
|
mod_login();
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$mod = array(
|
$mod = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user