[backend/api] Fix session createdAt being populated as -infinity
This commit is contained in:
parent
66675146d9
commit
22cf408d6c
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ public class AuthController(DatabaseContext db, UserService userSvc, UserRendere
|
||||||
Id = IdHelpers.GenerateSlowflakeId(),
|
Id = IdHelpers.GenerateSlowflakeId(),
|
||||||
UserId = user.Id,
|
UserId = user.Id,
|
||||||
Active = !profile.TwoFactorEnabled,
|
Active = !profile.TwoFactorEnabled,
|
||||||
CreatedAt = new DateTime(),
|
CreatedAt = DateTime.UtcNow,
|
||||||
Token = CryptographyHelpers.GenerateRandomString(32)
|
Token = CryptographyHelpers.GenerateRandomString(32)
|
||||||
};
|
};
|
||||||
await db.AddAsync(session);
|
await db.AddAsync(session);
|
||||||
|
|
Loading…
Add table
Reference in a new issue