作者 刘朕
1 个管道 的构建 通过 耗费 5 秒

模拟登录

... ... @@ -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'));
}
... ...