login after reg
parent
f30eab6561
commit
50f01d2339
|
@ -113,6 +113,21 @@
|
|||
$statementInventoryFolder->execute(['agentID' => $avatarUUID, 'folderName' => $FolderName, 'folderTyp' => $InventoryType, 'folderVersion' => 1, 'folderID' => $FolderUUID, 'parentFolderID' => $FolderParent]);
|
||||
}
|
||||
|
||||
$statementInviteDeleter = $RUNTIME['PDO']->prepare('DELETE FROM InviteCodes WHERE InviteCode = :code');
|
||||
$statementInviteDeleter->execute(['code' => $_REQUEST['code']]);
|
||||
|
||||
$_SESSION['USERNAME'] = trim($RUNTIME['REGISTER']['Name']);
|
||||
$_SESSION['FIRSTNAME'] = trim($avatarNameParts[0]);
|
||||
$_SESSION['LASTNAME'] = trim($avatarNameParts[1]);
|
||||
$_SESSION['EMAIL'] = trim($RUNTIME['REGISTER']['EMAIL']);
|
||||
$_SESSION['PASSWORD'] = $passwordHash;
|
||||
$_SESSION['SALT'] = $passwordSalt;
|
||||
$_SESSION['UUID'] = $avatarUUID;
|
||||
$_SESSION['LEVEL'] = 0;
|
||||
$_SESSION['DISPLAYNAME'] = strtoupper(trim($RUNTIME['REGISTER']['Name']));
|
||||
$_SESSION['LOGIN'] = 'true';
|
||||
include "./pages/".@$_REQUEST['page'].".php";
|
||||
die();
|
||||
}else{
|
||||
$HTML->ReplaceLayoutInhalt("%%MESSAGE%%", "Ups da stimmt was nicht. Versuche es bitte noch mal.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue