temp commit

This commit is contained in:
GotPPay
2018-05-31 16:26:40 +02:00
parent eec4d177b1
commit 636b1a1523
2 changed files with 15 additions and 0 deletions

View File

@@ -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)
}