You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
if(!(substr(loginhelper($conn, $_POST['username'], $_POST['password']),0,1) === "1")) //loginhelper() needs to return with 1... for successfull login
die("Authentication failed");
// prepare, bind and execute
$stmt = $conn->prepare("SELECT sk.useridTO, sk.useridFROM, sk.usernameFROM, sk.symkey FROM symkeyrequests AS sk, users WHERE sk.useridTO = users.id AND users.username = ? ORDER BY sk.id DESC");
$stmt->bind_param("s", $_POST['username']);
$stmt->execute();
if($stmt->errno)
die("Error during the execution of the SQL query");