Improve feedback in mod/settings
This commit is contained in:
parent
b1b6533512
commit
7ef3308a8d
1 changed files with 6 additions and 4 deletions
|
@ -252,6 +252,8 @@ function settings_post(App $a)
|
||||||
unlink($_FILES['importcontact-filename']['tmp_name']);
|
unlink($_FILES['importcontact-filename']['tmp_name']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($_POST['resend_relocate'])) {
|
if (!empty($_POST['resend_relocate'])) {
|
||||||
|
@ -373,7 +375,7 @@ function settings_post(App $a)
|
||||||
if ($email != $a->user['email']) {
|
if ($email != $a->user['email']) {
|
||||||
// check for the correct password
|
// check for the correct password
|
||||||
if (!User::authenticate(intval(local_user()), $_POST['mpassword'])) {
|
if (!User::authenticate(intval(local_user()), $_POST['mpassword'])) {
|
||||||
$err .= DI::l10n()->t('Wrong Password') . EOL;
|
$err .= DI::l10n()->t('Wrong Password.');
|
||||||
$email = $a->user['email'];
|
$email = $a->user['email'];
|
||||||
}
|
}
|
||||||
// check the email is valid
|
// check the email is valid
|
||||||
|
@ -391,7 +393,7 @@ function settings_post(App $a)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen($err)) {
|
if (strlen($err)) {
|
||||||
notice($err . EOL);
|
notice($err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue