mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:50:10 +00:00
Removed and replaced deprecated functionalities
This commit is contained in:
parent
cfac13790b
commit
eb1b2256a0
12 changed files with 29 additions and 230 deletions
|
@ -308,7 +308,13 @@ function settings_post(App $a)
|
|||
|
||||
if ($email != $user['email']) {
|
||||
// check for the correct password
|
||||
if (!User::authenticate(intval(local_user()), $_POST['mpassword'])) {
|
||||
try {
|
||||
$authenticated = User::getIdFromPasswordAuthentication(intval(local_user()), $_POST['mpassword']);
|
||||
} catch (Exception $ex) {
|
||||
$authenticated = false;
|
||||
}
|
||||
|
||||
if (!$authenticated) {
|
||||
$err .= DI::l10n()->t('Wrong Password.');
|
||||
$email = $user['email'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue