mirror of
https://github.com/Floriansylvain/RenewCMS.git
synced 2026-08-19 19:53:21 +02:00
feat: password reset #32
This commit is contained in:
@@ -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