Commit 2e8e8188e7132bf5ceda2e0cb6de008dadd3fbfa
1 parent
d5c54830
user registration
Showing
2 changed files
with
0 additions
and
7 deletions
Show diff stats
app/library/App/Controllers/UserController.php
| @@ -44,12 +44,6 @@ class UserController extends CrudResourceController | @@ -44,12 +44,6 @@ class UserController extends CrudResourceController | ||
| 44 | 44 | ||
| 45 | public function registration() { | 45 | public function registration() { |
| 46 | 46 | ||
| 47 | - return [ | ||
| 48 | - 'firstName', | ||
| 49 | - 'lastName', | ||
| 50 | - 'password' | ||
| 51 | - ]; | ||
| 52 | - | ||
| 53 | $data = $this->getPostedData(); | 47 | $data = $this->getPostedData(); |
| 54 | 48 | ||
| 55 | if (!$data || count($data) == 0) { | 49 | if (!$data || count($data) == 0) { |
app/library/App/Resources/UserResource.php
| @@ -42,7 +42,6 @@ class UserResource extends ApiResource { | @@ -42,7 +42,6 @@ class UserResource extends ApiResource { | ||
| 42 | ->endpoint(ApiEndpoint::post('/registration', 'registration')) | 42 | ->endpoint(ApiEndpoint::post('/registration', 'registration')) |
| 43 | ->allow(AclRoles::UNAUTHORIZED) | 43 | ->allow(AclRoles::UNAUTHORIZED) |
| 44 | ->deny(AclRoles::AUTHORIZED) | 44 | ->deny(AclRoles::AUTHORIZED) |
| 45 | - ->description('Registration') | ||
| 46 | ; | 45 | ; |
| 47 | } | 46 | } |
| 48 | } | 47 | } |
| 49 | \ No newline at end of file | 48 | \ No newline at end of file |