feat: Refactor User entity and datasource to use email and password hashing with salt
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
|
||||
type UserDatasource interface {
|
||||
Get(ctx context.Context, id ulid.ULID) (*entities.User, error)
|
||||
Create(ctx context.Context, user *entities.User) error
|
||||
Update(ctx context.Context, user *entities.User) error
|
||||
Create(ctx context.Context, user *entities.User, passwordHash string, salt string) error
|
||||
Update(ctx context.Context, user *entities.User, passwordHash *string) error
|
||||
Delete(ctx context.Context, id ulid.ULID) error
|
||||
GetByUsername(ctx context.Context, username string) (*entities.User, error)
|
||||
GetByEmail(ctx context.Context, email string) (*entities.User, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user