mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 16:16:34 +00:00
fix bugs, improve security
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user