We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c65a1 commit 210cd65Copy full SHA for 210cd65
src/inc/apiv2/helper/resetUserPassword.routes.php
@@ -21,6 +21,10 @@ public function getRequiredPermissions(string $method): array {
21
public function preCommon(ServerRequestInterface $request): void {
22
// nothing, there is no user for this request as it is an unauthenticated request
23
}
24
+
25
+ public static function getResponse(): array {
26
+ return ["Reset" => "Success"];
27
+ }
28
29
public function getFormFields(): array {
30
return [
@@ -32,7 +36,7 @@ public function getFormFields(): array {
32
36
public function actionPost($data): array|null {
33
37
UserUtils::userForgotPassword($data[User::USERNAME], $data[User::EMAIL]);
34
38
35
- return ["reset" => "success"];
39
+ return $this->getResponse();
40
41
42
0 commit comments