refac: password and code hashing & checking go through a domain hasher interface used by the use cases instead of bcrypt in the user repository and the auth handler
This commit is contained in:
1 parent
8460a078e3
commit
ff8cd5f0ec
16 files changed
+725
-88
No files matched your search
@@ -6,6 +6,7 @@ import (
|
||||
)
|
||||
|
||||
var ErrUserNotFound = errors.New("user not found")
|
||||
var ErrInvalidCredentials = errors.New("invalid credentials")
|
||||
|
||||
type User struct {
|
||||
ID uint32 `json:"id"`
|
||||
|
||||
Reference in new issue
Block a user