fix bugs, improve security

This commit is contained in:
Oleksandr Bezdieniezhnykh
2025-09-22 00:34:37 +03:00
parent 0af74ec278
commit a4295c6c52
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ public class UserService(IDbFactory dbFactory, ICache cache) : IUserService
private async Task UpdateLastLoginDate(User user, CancellationToken ct = default)
{
await dbFactory.Run(async db =>
await dbFactory.RunAdmin(async db =>
await db.Users.UpdateAsync(x => x.Email == user.Email, u => new User
{
LastLogin = DateTime.UtcNow