mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -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;
|
$n_hash = '{MD5}'.$n_hash;
|
||||||
|
|
||||||
// Change password
|
// Change password
|
||||||
if ( $v_hash == $n_hash ) {
|
if ( hash_equals($v_hash, $n_hash ) ) {
|
||||||
$v_new_password = tempnam("/tmp","vst");
|
$v_new_password = tempnam("/tmp","vst");
|
||||||
$fp = fopen($v_new_password, "w");
|
$fp = fopen($v_new_password, "w");
|
||||||
fwrite($fp, $_POST['new']."\n");
|
fwrite($fp, $_POST['new']."\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue