-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8b79c5
commit 78aad09
Showing
12 changed files
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
package auth | ||
|
||
type RegisterValidation struct { | ||
type registerValidation struct { | ||
Name string `validate:"required,min=1,max=40"` | ||
LastName string `validate:"required,min=1,max=40"` | ||
Username string `validate:"required,min=3,max=25"` | ||
Email string `validate:"required,email"` // Email format validation | ||
Password string `validate:"required,min=8"` | ||
} | ||
|
||
type AuthenticateValidation struct { | ||
type authenticateValidation struct { | ||
AccessToken string `validate:"required"` | ||
} | ||
|
||
type VerifyEmailValidation struct { | ||
type verifyEmailValidation struct { | ||
VerifyEmailToken string `validate:"required"` | ||
} | ||
|
||
type LoginValidation struct { | ||
type loginValidation struct { | ||
Email string `validate:"required"` | ||
Password string `validate:"required"` | ||
} | ||
|
||
type ChangePasswordValidation struct { | ||
type changePasswordValidation struct { | ||
OldPassword string `validate:"required"` | ||
NewPassword string `validate:"required,min=8"` | ||
} | ||
|
||
type RefreshTokenValidation struct { | ||
type refreshTokenValidation struct { | ||
UserID string `validate:"required"` | ||
RefreshToken string `validate:"required"` | ||
} | ||
|
||
type SendResetPasswordValidation struct { | ||
type sendResetPasswordValidation struct { | ||
Email string `validate:"required,email"` | ||
} | ||
|
||
type SubmitResetPasswordValidation struct { | ||
type submitResetPasswordValidation struct { | ||
ResetPasswordToken string `validate:"required"` | ||
NewPassword string `validate:"required,min=8"` | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package search | ||
|
||
type SearchValidation struct { | ||
type searchValidation struct { | ||
Input string `validate:"required,min=3"` | ||
} |
This file contains 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
This file contains 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
This file contains 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