SF Bug #2898426 - Can't update own password
This commit is contained in:
parent
d4483f961f
commit
23a2da1f26
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user