Commit e7978b2
committed
feat(auth): add validation for user creation in POST handler
Updates the _handlePost function in the generic data endpoint to include a specific validation check for modelName == 'user'. This ensures that any request to create a user includes a non-empty email field, preventing the creation of invalid user records.1 parent 2ae6db4 commit e7978b2
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
| |||
0 commit comments