add password reset model ; create entry in database; send email
This commit is contained in:
19
server/router/passwordresetroute/router.go
Normal file
19
server/router/passwordresetroute/router.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package passwordresetroute
|
||||
|
||||
import (
|
||||
"bitbucket.org/nemt/nemt-portal-api/application/applicationservice"
|
||||
"bitbucket.org/nemt/nemt-portal-api/infra/config"
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
||||
const (
|
||||
resetRequest = "/request/:email"
|
||||
resetComplete = "/complete"
|
||||
)
|
||||
|
||||
func Register(r *echo.Group, cfg *config.Config, svc *applicationservice.Service) {
|
||||
ctrl := controllerInstance(svc, cfg)
|
||||
|
||||
r.POST(resetRequest, ctrl.handleResetRequest)
|
||||
r.POST(resetComplete, ctrl.handleResetComplete)
|
||||
}
|
||||
Reference in New Issue
Block a user