feat: password reset #32
This commit is contained in:
1 parent
727418c8e6
commit
e4c2230b64
16 files changed
+527
-64
No files matched your search
@@ -5,8 +5,11 @@ import "GoCMS/domain/user"
|
||||
type IUserRepository interface {
|
||||
Get(id uint32) (user.User, error)
|
||||
GetByUsername(username string) (user.User, error)
|
||||
GetByEmail(email string) (user.User, error)
|
||||
GetAll() []user.User
|
||||
Create(user user.User) (user.User, error)
|
||||
Delete(id uint32) error
|
||||
UpdateVerificationStatus(userId uint32, isVerified bool) (user.User, error)
|
||||
UpdatePassword(userId uint32, password string) (user.User, error)
|
||||
UpdatePasswordResetCode(userId uint32, code string) (user.User, error)
|
||||
}
|
||||
Reference in new issue
Block a user