feat(auth): lab7 upgrade legacy Argon2id hashes after successful login

This commit is contained in:
Голиков Maximillian Антон
2026-11-29 12:09:24 +03:00
parent 1e785e3107
commit 4fe1d17e50
6 changed files with 67 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ import (
)
type UserRepository interface {
ReplacePasswordHash(ctx context.Context, id, previous, next string) (bool, error)
Create(ctx context.Context, user *User) error
GetByID(ctx context.Context, id string) (*User, error)
GetByUsername(ctx context.Context, username string) (*User, error)