mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-17 01:00:07 +01:00
feat: provide user data on login, minor fix to seeding, logical fixes
This commit is contained in:
@@ -28,8 +28,8 @@ namespace QuotifyBE.Controllers
|
||||
{
|
||||
Name="admin",
|
||||
Email = "admin@mail.com",
|
||||
PasswordHash = guhf.HashWithSHA512("admin")
|
||||
|
||||
// hashed twice, once by frontend, and second time by backend
|
||||
PasswordHash = guhf.HashWithSHA512(guhf.HashWithSHA512("admin"))
|
||||
};
|
||||
_db.Users.Add(Admin);
|
||||
await _db.SaveChangesAsync();
|
||||
|
||||
Reference in New Issue
Block a user