Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
58fb006c
Commit
58fb006c
authored
Oct 10, 2014
by
Marius Cramer
Browse files
- Fixed: FS#3691 - Admin re-login after change admin password fails
parent
49b3f5ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/tools/user_settings.php
View file @
58fb006c
...
...
@@ -97,6 +97,16 @@ class page_action extends tform_actions {
$app
->
error
(
'Invalid language.'
);
}
}
function
onAfterUpdate
()
{
global
$app
;
if
(
$_POST
[
'passwort'
]
!=
''
)
{
$tmp_user
=
$app
->
db
->
queryOneRecord
(
"SELECT passwort FROM sys_user WHERE userid = '"
.
$app
->
functions
->
intval
(
$_SESSION
[
's'
][
'user'
][
'userid'
])
.
"'"
);
$_SESSION
[
's'
][
'user'
][
'passwort'
]
=
$tmp_user
[
'passwort'
];
unset
(
$tmp_user
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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