mirror of
https://github.com/friendica/friendica
synced 2024-12-23 06:00:15 +00:00
Add htconfig setting to disable password_exposed()
This commit is contained in:
parent
701fd41463
commit
5b4fb945a2
2 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@ Example: To set the automatic database cleanup process add this line to your .ht
|
|||
* **diaspora_test** (Boolean) - For development only. Disables the message transfer.
|
||||
* **disable_email_validation** (Boolean) - Disables the check if a mail address is in a valid format and can be resolved via DNS.
|
||||
* **disable_url_validation** (Boolean) - Disables the DNS lookup of an URL.
|
||||
* **disable_password_exposed** (Boolean) - Disable the exposition check against the remote haveibeenpwned API on password change. Default value is false.
|
||||
* **dlogfile - location of the developer log file
|
||||
* **dlogip - restricts develop log writes to requests originating from this IP address
|
||||
* **frontend_worker_timeout** - Value in minutes after we think that a frontend task was killed by the webserver. Default value is 10.
|
||||
|
|
|
@ -390,7 +390,7 @@ function settings_post(App $a)
|
|||
$err = true;
|
||||
}
|
||||
|
||||
if (User::isPasswordExposed($newpass)) {
|
||||
if (!$a->getConfigValue('system', 'disable_password_exposed', false) && User::isPasswordExposed($newpass)) {
|
||||
notice(L10n::t('The new password has been exposed in a public data dump, please choose another.') . EOL);
|
||||
$err = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue