Skip to content

Commit

Permalink
api: Add CreateAccount first/last name sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
pschlan committed May 22, 2023
1 parent 623a072 commit 110ed7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/apimethods/CreateAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public function validateRequest($request) {
&& isset($request->email)
&& isset($request->password)
&& isset($request->timezone)
&& $request->firstName !== $request->email
&& $request->lastName !== $request->email
);
}

Expand Down

0 comments on commit 110ed7f

Please sign in to comment.