We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit daf950f2 authored by jurgbohn's avatar jurgbohn

Remove row in invitation_request upon registering.

parent 23bbb459
......@@ -75,6 +75,8 @@ if(isset($_POST['register'])) {
. time() . ")");
// Remove auth code and set their username as the invitee
$mdb2->query("UPDATE Invitations SET code = NULL, invitee = " . $mdb2->quote($username, "text") . " WHERE code = " . $mdb2->quote($authcode, "text"));
$removesql = "DELETE FROM Invitation_Request WHERE email=" . $mdb2->qoute($email, 'text');
$mdb2->exec($removesql);
$smarty->assign("registered", true);
} else {
$smarty->assign("username", $username);
......
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