feat: portal auth login and password reset
This commit is contained in:
@@ -52,6 +52,21 @@ func (r *Routes) Register(router fiber.Router) {
|
||||
r.auth.login,
|
||||
Body[dto.LoginForm]("form"),
|
||||
))
|
||||
r.log.Debugf("Registering route: Post /v1/auth/password/reset -> auth.passwordReset")
|
||||
router.Post("/v1/auth/password/reset"[len(r.Path()):], DataFunc1(
|
||||
r.auth.passwordReset,
|
||||
Body[dto.PasswordResetForm]("form"),
|
||||
))
|
||||
r.log.Debugf("Registering route: Post /v1/auth/password/reset/sms -> auth.passwordResetSendSMS")
|
||||
router.Post("/v1/auth/password/reset/sms"[len(r.Path()):], DataFunc1(
|
||||
r.auth.passwordResetSendSMS,
|
||||
Body[dto.PasswordResetSendSMSForm]("form"),
|
||||
))
|
||||
r.log.Debugf("Registering route: Post /v1/auth/password/reset/verify -> auth.passwordResetVerify")
|
||||
router.Post("/v1/auth/password/reset/verify"[len(r.Path()):], DataFunc1(
|
||||
r.auth.passwordResetVerify,
|
||||
Body[dto.PasswordResetVerifyForm]("form"),
|
||||
))
|
||||
r.log.Debugf("Registering route: Post /v1/auth/register -> auth.register")
|
||||
router.Post("/v1/auth/register"[len(r.Path()):], DataFunc1(
|
||||
r.auth.register,
|
||||
|
||||
Reference in New Issue
Block a user