forked from collabvm/CollabVMAuthServer
that again because im fucking stupid
This commit is contained in:
parent
44afbc8619
commit
2fa1a122f1
1 changed files with 1 additions and 1 deletions
|
@ -1043,7 +1043,7 @@ public static class Routes
|
||||||
{
|
{
|
||||||
await Program.Database.RegisterAccount(payload.username, payload.email, dob, payload.password, true, ip, null);
|
await Program.Database.RegisterAccount(payload.username, payload.email, dob, payload.password, true, ip, null);
|
||||||
var token = Utilities.RandomString(32);
|
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
|
return Results.Json(new RegisterResponse
|
||||||
{
|
{
|
||||||
success = true,
|
success = true,
|
||||||
|
|
Loading…
Reference in a new issue