Display error on system-level password change failure

This commit is contained in:
Miles Lott 2004-01-21 22:56:52 +00:00
parent 9be5a8982d
commit e8e338c66a

View File

@ -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
{