Added reset password route

This commit is contained in:
Nedim
2023-10-30 19:21:43 +01:00
parent 75692d7b20
commit 72ccd5e71c
16 changed files with 531 additions and 33 deletions

View File

@@ -6,9 +6,18 @@ type User struct {
Password string `json:"password"`
Email string `json:"email"`
Avatar string `json:"avatar"`
IsActive bool `json:"isActive" gorm:"default:false"`
CompanyID uint `json:"companyId"`
}
type ResetPasswordRequest struct {
Email string `json:"email"`
}
type UpdatePasswordRequest struct {
Password string `json:"password"`
Token string `json:"token"`
}
func (User) Update() (bool, error) {
return false, nil
}