mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-26 05:32:59 +00:00
Skip the password hashing cost recheck if it's been disabled
This commit is contained in:
parent
1cc92ba260
commit
41ea63281c
1 changed files with 4 additions and 1 deletions
|
@ -154,6 +154,9 @@ function do_password_hash_code_update() {
|
||||||
if(hash_password_properties()["algorithm"] == PASSWORD_ARGON2I)
|
if(hash_password_properties()["algorithm"] == PASSWORD_ARGON2I)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Skip rechecking if the automatic check has been disabled
|
||||||
|
if($settings->password_cost_time_interval == -1)
|
||||||
|
return;
|
||||||
// Skip the recheck if we've done one recently
|
// Skip the recheck if we've done one recently
|
||||||
if(isset($settings->password_cost_time_lastcheck) &&
|
if(isset($settings->password_cost_time_lastcheck) &&
|
||||||
time() - $settings->password_cost_time_lastcheck < $settings->password_cost_time_interval)
|
time() - $settings->password_cost_time_lastcheck < $settings->password_cost_time_interval)
|
||||||
|
|
Loading…
Reference in a new issue