Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
3300f959
Commit
3300f959
authored
Dec 15, 2008
by
vogelor
Browse files
Fixed a bug in "login as". Now the user can "re-login" as admin.
parent
edcc9406
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/login/index.php
View file @
3300f959
...
...
@@ -111,7 +111,7 @@ class login_index {
$sql
=
"DELETE FROM `attempts_login` WHERE `ip`='
{
$ip
}
'"
;
$app
->
db
->
query
(
$sql
);
$user
=
$app
->
db
->
toLower
(
$user
);
if
(
$loginAs
)
$oldSession
=
$_SESSION
[
's
_old
'
];
if
(
$loginAs
)
$oldSession
=
$_SESSION
[
's'
];
$_SESSION
=
array
();
if
(
$loginAs
)
$_SESSION
[
's_old'
]
=
$oldSession
;
// keep the way back!
$_SESSION
[
's'
][
'user'
]
=
$user
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment