This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type UserModel struct { | |
| ID primitive.ObjectID `bson:"_id"` | |
| First_name string `json:"first_name" validate:"required,min=2,max=100"` | |
| Last_name string `json:"last_name" validate:"required,min=2,max=100"` | |
| Password string `json:"Password" validate:"required,min=6,max=20"` | |
| Email string `json:"email" validate:"email,required"` | |
| Phone int `json:"phone" validate:"required"` | |
| Token string `json:"token"` | |
| Refresh_token string `json:"refresh_token"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "net/http" | |
| EmailVerification "GO/routes/Auth/EmailVerification" | |
| ForgotPass "GO/routes/Auth/ForgotPass" | |
| GoogleAuth "GO/routes/Auth/GoogleAuthenticator" | |
| Signin "GO/routes/Auth/Signin" | |
| Signup "GO/routes/Auth/Signup" |
NewerOlder