Revert "Unify password changing and invalidate auth tokens (#27625)"

This reverts commit 688d4a1f71.
This commit is contained in:
Earl Warren 2024-02-05 14:43:35 +01:00
parent 80cf92bf1f
commit 1951c51c8e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
3 changed files with 1 additions and 20 deletions

View file

@ -54,11 +54,6 @@ func DeleteAuthTokenByID(ctx context.Context, id string) error {
return err
}
func DeleteAuthTokensByUserID(ctx context.Context, uid int64) error {
_, err := db.GetEngine(ctx).Where(builder.Eq{"user_id": uid}).Delete(&AuthToken{})
return err
}
func DeleteExpiredAuthTokens(ctx context.Context) error {
_, err := db.GetEngine(ctx).Where(builder.Lt{"expires_unix": timeutil.TimeStampNow()}).Delete(&AuthToken{})
return err