Commit 73c9f92238240de45d3035611a751e3d62b8c73e
1 parent
d75736d6
user registration
Showing
3 changed files
with
3 additions
and
7 deletions
Show diff stats
app/library/App/Controllers/ProjectController.php
app/library/App/Model/User.php
app/library/App/Resources/UserResource.php
... | ... | @@ -31,6 +31,7 @@ class UserResource extends ApiResource { |
31 | 31 | ->allow(AclRoles::USER) |
32 | 32 | ->description('Returns the currently logged in user') |
33 | 33 | ) |
34 | + | |
34 | 35 | ->endpoint(ApiEndpoint::post('/authenticate', 'authenticate') |
35 | 36 | ->allow(AclRoles::UNAUTHORIZED) |
36 | 37 | ->deny(AclRoles::AUTHORIZED) |
... | ... | @@ -40,9 +41,8 @@ class UserResource extends ApiResource { |
40 | 41 | 'expires' => 1451139067 |
41 | 42 | ]) |
42 | 43 | ) |
44 | + | |
43 | 45 | ->endpoint(ApiEndpoint::post('/registration', 'registration')) |
44 | - ->allow(AclRoles::UNAUTHORIZED) | |
45 | - ->deny(AclRoles::AUTHORIZED) | |
46 | 46 | ; |
47 | 47 | } |
48 | 48 | } |
49 | 49 | \ No newline at end of file | ... | ... |