mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-27 07:33:41 +00:00
Saving User Profile logs you out of the backend (#42284)
This commit is contained in:
parent
dbe602fa71
commit
ce929f3c69
|
@ -166,7 +166,7 @@ class ProfileController extends BaseController
|
|||
// Redirect back to the edit screen.
|
||||
$this->setMessage(Text::_('COM_USERS_PROFILE_SAVE_SUCCESS'));
|
||||
|
||||
$redirect = $app->getUserState('com_users.edit.profile.redirect');
|
||||
$redirect = $app->getUserState('com_users.edit.profile.redirect', '');
|
||||
|
||||
// Don't redirect to an external URL.
|
||||
if (!Uri::isInternal($redirect)) {
|
||||
|
@ -184,7 +184,7 @@ class ProfileController extends BaseController
|
|||
// Clear the profile id from the session.
|
||||
$app->setUserState('com_users.edit.profile.id', null);
|
||||
|
||||
$redirect = $app->getUserState('com_users.edit.profile.redirect');
|
||||
$redirect = $app->getUserState('com_users.edit.profile.redirect', '');
|
||||
|
||||
// Don't redirect to an external URL.
|
||||
if (!Uri::isInternal($redirect)) {
|
||||
|
|
|
@ -281,7 +281,7 @@ class ProfileModel extends FormModel
|
|||
}
|
||||
|
||||
// Destroy all active sessions for the user after changing the password
|
||||
if ($data['password']) {
|
||||
if ($data['password1']) {
|
||||
UserHelper::destroyUserSessions($user->id, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user