fix: get token logic, add buffer time

fix typos
This commit is contained in:
Lakhan Samani
2021-07-21 13:36:26 +05:30
parent 885aaab6ee
commit a528fe2f26
9 changed files with 215 additions and 258 deletions

View File

@@ -8,12 +8,6 @@ type Error struct {
}
type ForgotPasswordInput struct {
Token string `json:"token"`
NewPassword string `json:"newPassword"`
ConfirmPassword string `json:"confirmPassword"`
}
type ForgotPasswordRequestInput struct {
Email string `json:"email"`
}
@@ -33,6 +27,12 @@ type ResendVerifyEmailInput struct {
Email string `json:"email"`
}
type ResetPassowrdInput struct {
Token string `json:"token"`
Password string `json:"password"`
ConfirmPassword string `json:"confirmPassword"`
}
type Response struct {
Message string `json:"message"`
}
@@ -63,7 +63,6 @@ type User struct {
FirstName *string `json:"firstName"`
LastName *string `json:"lastName"`
EmailVerifiedAt *int64 `json:"emailVerifiedAt"`
Password *string `json:"password"`
Image *string `json:"image"`
CreatedAt *int64 `json:"createdAt"`
UpdatedAt *int64 `json:"updatedAt"`