mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Add exposed password check to manual password change
This commit is contained in:
parent
d34a92ab2b
commit
ca13570251
2 changed files with 19 additions and 1 deletions
|
@ -390,6 +390,11 @@ function settings_post(App $a)
|
|||
$err = true;
|
||||
}
|
||||
|
||||
if (User::checkPasswordExposed($newpass)) {
|
||||
notice(L10n::t('The new password has been exposed in a public data dump, please choose another.') . EOL);
|
||||
$err = true;
|
||||
}
|
||||
|
||||
// check if the old password was supplied correctly before changing it to the new value
|
||||
if (!User::authenticate(intval(local_user()), $_POST['opassword'])) {
|
||||
notice(L10n::t('Wrong password.') . EOL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue