SF Bug #2898426 - Can't update own password
This commit is contained in:
parent
d4483f961f
commit
23a2da1f26
@ -52,21 +52,15 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
$redirect_url = sprintf('cmd.php?cmd=template_engine&server_id=%s&dn=%s',
|
$redirect_url = sprintf('cmd.php?cmd=template_engine&server_id=%s&dn=%s',
|
||||||
|
Loading…
Reference in New Issue
Block a user