mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
hash_equals() in /reset/mail/
Thanks to @divinity76
This commit is contained in:
parent
a2da58841b
commit
e65af22a54
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ if ((!empty($_POST['email'])) && (!empty($_POST['password'])) && (!empty($_POST[
|
|||
$n_hash = '{MD5}'.$n_hash;
|
||||
|
||||
// Change password
|
||||
if ( $v_hash == $n_hash ) {
|
||||
if ( hash_equals($v_hash, $n_hash ) ) {
|
||||
$v_new_password = tempnam("/tmp","vst");
|
||||
$fp = fopen($v_new_password, "w");
|
||||
fwrite($fp, $_POST['new']."\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue