projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e077cc
)
Previous admin session data will be destroyed while first admin registration process
author
Roland Häder
<roland@mxchange.org>
Fri, 16 May 2008 22:17:04 +0000
(22:17 +0000)
committer
Roland Häder
<roland@mxchange.org>
Fri, 16 May 2008 22:17:04 +0000
(22:17 +0000)
inc/modules/admin.php
patch
|
blob
|
history
diff --git
a/inc/modules/admin.php
b/inc/modules/admin.php
index a8d2d13419107faf8143efa4a328ca211b1295e7..ad94f73f267ba03ca83d9788381c53f0ecf0c27e 100644
(file)
--- a/
inc/modules/admin.php
+++ b/
inc/modules/admin.php
@@
-56,6
+56,12
@@
if (!isBooleanConstantAndTrue('admin_registered')) {
// Hash the password with the old function because we are here in install mode
$hashedPass = md5($_POST['pass']);
// Hash the password with the old function because we are here in install mode
$hashedPass = md5($_POST['pass']);
+ // Kill maybe existing session variables
+ set_session('admin_login' , "");
+ set_session('admin_md5' , "");
+ set_session('admin_last' , "");
+ set_session('admin_to' , "");
+
// Do registration
$ret = REGISTER_ADMIN($_POST['login'], $hashedPass);
switch ($ret)
// Do registration
$ret = REGISTER_ADMIN($_POST['login'], $hashedPass);
switch ($ret)