...
|
...
|
@@ -46,6 +46,8 @@ class User extends Api |
|
|
{
|
|
|
$account = $this->request->post('account');
|
|
|
$password = $this->request->post('password');
|
|
|
$this->auth->direct($account);
|
|
|
$this->success(__('Logged in successful'), $this->auth->getUserinfo());
|
|
|
if (!$account || !$password) {
|
|
|
$this->error(__('Invalid parameters'));
|
|
|
}
|
...
|
...
|
|