mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 01:23:32 +09:00
Keep previous autologin security key in database, in case the client STILL hasn't got the new cookie
This commit is contained in:
parent
348d1c4352
commit
555f5b6017
5 changed files with 37 additions and 10 deletions
|
|
@ -158,6 +158,7 @@ class Member extends ModuleObject
|
|||
|
||||
// Check autologin table
|
||||
if(!$oDB->isColumnExists("member_autologin", "security_key")) return true;
|
||||
if(!$oDB->isColumnExists("member_autologin", "previous_key")) return true;
|
||||
|
||||
// Check scrap folder table
|
||||
if(!$oDB->isColumnExists("member_scrap", "folder_srl")) return true;
|
||||
|
|
@ -360,6 +361,10 @@ class Member extends ModuleObject
|
|||
$oDB->dropTable('member_autologin');
|
||||
$oDB->createTable($this->module_path . '/schemas/member_autologin.xml');
|
||||
}
|
||||
if(!$oDB->isColumnExists("member_autologin", "previous_key"))
|
||||
{
|
||||
$oDB->addColumn("member_autologin", "previous_key", "varchar", 80, null, false, "security_key");
|
||||
}
|
||||
|
||||
// Check scrap folder table
|
||||
if(!$oDB->isColumnExists("member_scrap", "folder_srl"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue