Merge branch 'remastering' of https://git.steelants.cz/SImple-Home/PHP_SMART_HOME_V3 into remastering

This commit is contained in:
JonatanRek 2020-05-17 14:25:28 +02:00
commit e4d93c7add
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<?php
class AuthApi {
class AuthApi extends ApiController {
public function login(){
$token = (new AuthManager)->getToken($this->input->username,$this->input->password);
$token = (new AuthManager)->getToken($this->input['username'],$this->input['password']);
if (!$token) {
throw new Exception("Auth failed", 401);
}