@@ -31,11 +31,11 @@ type signInGoogleRequest struct {
31
31
Token string `json:"google_token" validate:"required"`
32
32
}
33
33
34
- type otpEmailGetRequest struct {
34
+ type otpEmailSendRequest struct {
35
35
Email string `json:"email" validate:"required,email,max=191"`
36
36
}
37
37
38
- type otpEmailValidateRequest struct {
38
+ type otpEmailVerifyRequest struct {
39
39
Email string `json:"email" validate:"required,email,max=191"`
40
40
Otp string `json:"otp" validate:"required"`
41
41
}
@@ -112,9 +112,9 @@ func AuthSignUp(ctr *container.Container) echo.HandlerFunc {
112
112
}
113
113
}
114
114
115
- func AuthOtpEmailGenerate (ctr * container.Container ) echo.HandlerFunc {
115
+ func AuthOtpEmailSend (ctr * container.Container ) echo.HandlerFunc {
116
116
return func (ctx echo.Context ) error {
117
- var r otpEmailGetRequest
117
+ var r otpEmailSendRequest
118
118
if err := ctx .Bind (& r ); err != nil {
119
119
return ctx .JSON (http .StatusBadRequest , map [string ]string {
120
120
"message" : "Cannot parse the request body." ,
@@ -134,9 +134,9 @@ func AuthOtpEmailGenerate(ctr *container.Container) echo.HandlerFunc {
134
134
}
135
135
}
136
136
137
- func AuthOtpEmailSubmit (ctr * container.Container ) echo.HandlerFunc {
137
+ func AuthOtpEmailVerify (ctr * container.Container ) echo.HandlerFunc {
138
138
return func (ctx echo.Context ) error {
139
- var r otpEmailValidateRequest
139
+ var r otpEmailVerifyRequest
140
140
if err := ctx .Bind (& r ); err != nil {
141
141
return ctx .JSON (http .StatusBadRequest , map [string ]string {
142
142
"message" : "Cannot parse the request body." ,
0 commit comments