Commit 580303e72ab8048641b4473f6d66b9fcfb2a9335
1 parent
e849e708
test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/library/App/Controllers/UserController.php
... | ... | @@ -18,12 +18,12 @@ class UserController extends CrudResourceController |
18 | 18 | |
19 | 19 | public function authenticate() |
20 | 20 | { |
21 | - return "123"; | |
22 | 21 | $username = $this->request->getUsername(); |
23 | 22 | $password = $this->request->getPassword(); |
24 | 23 | |
25 | 24 | $session = $this->authManager->loginWithUsernamePassword(\App\Auth\UsernameAccountType::NAME, $username, |
26 | 25 | $password); |
26 | + return "123"; | |
27 | 27 | |
28 | 28 | $transformer = new \App\Transformers\UserTransformer; |
29 | 29 | $transformer->setModelClass('App\Model\User'); | ... | ... |