mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02:00
Display error on system-level password change failure
This commit is contained in:
parent
9be5a8982d
commit
e8e338c66a
@ -69,8 +69,12 @@
|
|||||||
$passwd_changed = $GLOBALS['phpgw']->auth->change_password($o_passwd, $n_passwd);
|
$passwd_changed = $GLOBALS['phpgw']->auth->change_password($o_passwd, $n_passwd);
|
||||||
if(!$passwd_changed)
|
if(!$passwd_changed)
|
||||||
{
|
{
|
||||||
// This need to be changed to show a different message based on the result
|
$errors[] = lang('Failed to change password. Please contact your administrator.');
|
||||||
$GLOBALS['phpgw']->redirect_link('/preferences/index.php','cd=38');
|
$GLOBALS['phpgw']->common->phpgw_header();
|
||||||
|
echo parse_navbar();
|
||||||
|
$GLOBALS['phpgw']->template->set_var('messages',$GLOBALS['phpgw']->common->error_list($errors));
|
||||||
|
$GLOBALS['phpgw']->template->pfp('out','form');
|
||||||
|
$GLOBALS['phpgw']->common->phpgw_exit(True);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user