feat(auth): lab7 upgrade legacy Argon2id hashes after successful login
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user