Unverified Commit c413a0a7 authored by Amin.MasterkinG's avatar Amin.MasterkinG Committed by GitHub
Browse files

Fixed issues of change password for SPR6

parent e8ad4d97
......@@ -295,10 +295,7 @@ class user
list($salt, $verifier) = getRegistrationData(strtoupper($userinfo['username']), $_POST['password']);
database::$auth->update('account', [
'salt' => $salt,
'verifier' => $verifier,
'sessionkey' => '',
'v' => '',
's' => ''
'verifier' => $verifier
], [
'id[=]' => $userinfo['id']
]);
......@@ -378,10 +375,7 @@ class user
list($salt, $verifier) = getRegistrationData(strtoupper($userinfo['username']), $_POST['password']);
database::$auth->update('account', [
'salt' => $salt,
'verifier' => $verifier,
'sessionkey' => '',
'v' => '',
's' => ''
'verifier' => $verifier
], [
'id[=]' => $userinfo['id']
]);
......@@ -512,9 +506,6 @@ class user
database::$auth->update('account', [
'salt' => $salt,
'verifier' => $verifier,
'sessionkey' => '',
'v' => '',
's' => '',
'restore_key' => '1'
], [
'id[=]' => $userinfo['id']
......@@ -546,9 +537,6 @@ class user
database::$auth->update('account', [
'salt' => $salt,
'verifier' => $verifier,
'sessionkey' => '',
'v' => '',
's' => '',
'restore_key' => '1'
], [
'id[=]' => $userinfo['id']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment