temp commit
This commit is contained in:
@@ -120,3 +120,16 @@ func (c *controller) handleResetComplete(ctx echo.Context) error {
|
||||
|
||||
return routeutils.ResponseAPIOK(ctx, nil)
|
||||
}
|
||||
|
||||
func (c *controller) handleTokenOpen(ctx echo.Context) error {
|
||||
token, err := routeutils.GetAndValidateStringParam(ctx, "token", "mandatory field")
|
||||
if err != nil {
|
||||
return routeutils.HandleAPIError(ctx, err)
|
||||
}
|
||||
|
||||
if err := c.svc.PasswordReset.SetTokenOpened(token); err != nil {
|
||||
return routeutils.HandleAPIError(ctx, err)
|
||||
}
|
||||
|
||||
return routeutils.ResponseAPIOK(ctx, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user