mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01: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);
|
||||
if(!$passwd_changed)
|
||||
{
|
||||
// This need to be changed to show a different message based on the result
|
||||
$GLOBALS['phpgw']->redirect_link('/preferences/index.php','cd=38');
|
||||
$errors[] = lang('Failed to change password. Please contact your administrator.');
|
||||
$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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user