mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix password related
This commit is contained in:
@@ -790,8 +790,10 @@ tr_small($lang_usercp['row_funbox'],"<input type=checkbox name=showfb".($CURUSER
|
||||
$passhash = hash('sha256', $sec . $chpassword);
|
||||
$updateset[] = "secret = " . sqlesc($sec);
|
||||
$updateset[] = "passhash = " . sqlesc($passhash);
|
||||
$authKey = mksecret();
|
||||
$updateset[] = "auth_key = " . sqlesc($authKey);
|
||||
|
||||
logincookie($CURUSER["id"], $userInfo->auth_key);
|
||||
logincookie($CURUSER["id"], $authKey);
|
||||
$passupdated = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user