Revert "Trust PHP session and remove remember me cookie" (#5252)

This commit is contained in:
Neil Lathwood
2016-12-27 20:37:03 +00:00
committed by GitHub
parent 3b198243d5
commit f5ce3c509a
5 changed files with 57 additions and 154 deletions

View File

@@ -86,7 +86,7 @@ function adduser($username, $level = 0, $email = '', $realname = '', $can_modify
{
// Check to see if user is already added in the database
if (!user_exists_in_db($username)) {
$userid = dbInsert(array('username' => $username, 'realname' => $realname, 'email' => $email, 'descr' => $description, 'level' => $level, 'can_modify_passwd' => $can_modify_passwd, 'twofactor' => $twofactor), 'users');
$userid = dbInsert(array('username' => $username, 'realname' => $realname, 'email' => $email, 'descr' => $description, 'level' => $level, 'can_modify_passwd' => $can_modify_passwd, 'twofactor' => $twofactor, 'user_id' => get_userid($username)), 'users');
if ($userid == false) {
return false;
} else {