aboutsummaryrefslogtreecommitdiff
path: root/internal/db/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/users.go')
-rw-r--r--internal/db/users.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/db/users.go b/internal/db/users.go
index 80b124ea..6e657ecb 100644
--- a/internal/db/users.go
+++ b/internal/db/users.go
@@ -158,7 +158,7 @@ func (db *users) Authenticate(ctx context.Context, login, password string, login
return user, nil
}
- return nil, auth.ErrBadCredentials{Args: map[string]interface{}{"login": login, "userID": user.ID}}
+ return nil, auth.ErrBadCredentials{Args: map[string]any{"login": login, "userID": user.ID}}
}
authSourceID = user.LoginSource
@@ -166,7 +166,7 @@ func (db *users) Authenticate(ctx context.Context, login, password string, login
} else {
// Non-local login source is always greater than 0.
if loginSourceID <= 0 {
- return nil, auth.ErrBadCredentials{Args: map[string]interface{}{"login": login}}
+ return nil, auth.ErrBadCredentials{Args: map[string]any{"login": login}}
}
authSourceID = loginSourceID
@@ -406,7 +406,7 @@ func (db *users) DeleteCustomAvatar(ctx context.Context, userID int64) error {
return db.WithContext(ctx).
Model(&User{}).
Where("id = ?", userID).
- Updates(map[string]interface{}{
+ Updates(map[string]any{
"use_custom_avatar": false,
"updated_unix": db.NowFunc().Unix(),
}).
@@ -693,7 +693,7 @@ func (db *users) UseCustomAvatar(ctx context.Context, userID int64, avatar []byt
return db.WithContext(ctx).
Model(&User{}).
Where("id = ?", userID).
- Updates(map[string]interface{}{
+ Updates(map[string]any{
"use_custom_avatar": true,
"updated_unix": db.NowFunc().Unix(),
}).