store([ 'username' => $_POST['username'], 'email' => $_POST['email'], 'password' => $_POST['password'], 'password_confirmation' => $_POST['password2'], ]); } catch (\Exception $e) { stderr("ERROR", $e->getMessage()); } header("Location: " . get_protocol_prefix() . "$BASEURL/userdetails.php?id=".htmlspecialchars($newUser->id)); die; } stdhead("Add user"); ?>

Add user

User name
Password
Re-type password
E-mail