mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Small mistake with last commit
This commit is contained in:
parent
31f657e550
commit
6c2c18514e
@ -242,7 +242,7 @@ if (file_exists($config['has_installed'])) {
|
||||
$user['password'] = hash('sha256', $user['salt'] . $user['password']);
|
||||
|
||||
$_query = prepare("UPDATE `mods` SET `password` = :password, `salt` = :salt WHERE `id` = :id");
|
||||
$_query->bindValue(':username', $user['id']);
|
||||
$_query->bindValue(':id', $user['id']);
|
||||
$_query->bindValue(':password', $user['password']);
|
||||
$_query->bindValue(':salt', $user['salt']);
|
||||
$_query->execute() or error(db_error($_query));
|
||||
|
Loading…
Reference in New Issue
Block a user