that again because im fucking stupid

This commit is contained in:
Elijah R 2024-04-08 22:02:26 -04:00
parent 44afbc8619
commit 2fa1a122f1

View file

@ -1043,7 +1043,7 @@ public static class Routes
{
await Program.Database.RegisterAccount(payload.username, payload.email, dob, payload.password, true, ip, null);
var token = Utilities.RandomString(32);
await Program.Database.CreateSession(user.Username, token, ip);
await Program.Database.CreateSession(payload.username, token, ip);
return Results.Json(new RegisterResponse
{
success = true,