X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsettings.php;h=080bcdeb93848a7cc086c60798583752a3b17be3;hb=b5d2d32b443f7aa8ec6e0e91f36da3cc0a0f2a82;hp=b1b8abd94e630a6f9c1ff44293dcfc1ffd4bee3f;hpb=f99d37d87e1f3a6a18dede9f56cd8e86d25f8aa7;p=friendica.git diff --git a/mod/settings.php b/mod/settings.php index b1b8abd94e..080bcdeb93 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -308,7 +308,9 @@ function settings_post(App $a) if ($email != $user['email']) { // check for the correct password - if (!User::authenticate(intval(local_user()), $_POST['mpassword'])) { + try { + User::getIdFromPasswordAuthentication(local_user(), $_POST['mpassword']); + } catch (Exception $ex) { $err .= DI::l10n()->t('Wrong Password.'); $email = $user['email']; }