SF Bug #2898426 - Can't update own password

This commit is contained in:
Deon George 2009-11-21 11:17:53 +11:00
parent d4483f961f
commit 23a2da1f26

View File

@ -52,19 +52,13 @@ if ($result) {
# If the user password was changed, not tell the to relogin. # If the user password was changed, not tell the to relogin.
if ($mustRelogin) { if ($mustRelogin) {
$app['server']->logout('user'); $app['server']->logout('user');
unset_lastactivity($app['server']); unset($_SESSION['ACTIVITY'][$app['server']->getIndex()]);
echo '<body>';
echo '<br />'; system_message(array(
echo '<center>'; 'title'=>_('Modification successful!'),
printf('<b>%s</b>',_('Modification successful!')); 'body'=>_('Since you changed your password, you must now login again with your new password.'),
echo '<br /><br />'; 'type'=>'info'),
echo _('Since you changed your password, you must now login again with your new password.'); sprintf('cmd.php?cmd=login_form&server_id=%s',$app['server']->getIndex()));
echo '<br />';
printf('<a href="cmd.php?cmd=login_form&server_id=%s">%s...</a>',$app['server']->getIndex(), _('Login'));
echo '</center>';
echo '</body>';
echo '</html>';
exit; exit;
} }