mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-14 10:08:15 +02:00
changed the return result of the confirm api actions
This commit is contained in:
1 parent
bc519231d9
commit
3d14addfef
4 files changed
+18
-77
No files matched your search
+2
-2
@@ -103,12 +103,12 @@ func (api *adminApi) confirmPasswordReset(c echo.Context) error {
|
||||
return NewBadRequestError("An error occurred while loading the submitted data.", readErr)
|
||||
}
|
||||
|
||||
admin, submitErr := form.Submit()
|
||||
_, submitErr := form.Submit()
|
||||
if submitErr != nil {
|
||||
return NewBadRequestError("Failed to set new password.", submitErr)
|
||||
}
|
||||
|
||||
return api.authResponse(c, admin)
|
||||
return c.NoContent(http.StatusNoContent)
|
||||
}
|
||||
|
||||
func (api *adminApi) list(c echo.Context) error {
|
||||
|
||||
Reference in new issue
Block a user