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