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

This commit is contained in:
JonatanRek
2020-04-25 18:04:08 +02:00
2 changed files with 11 additions and 8 deletions

View File

@@ -23,10 +23,10 @@ class ApiController {
$authManager = new AuthManager();
$this->authenticated = $authManager>validateToken($_SERVER['HTTP_AUTHORIZATION']);
if(!$this->authenticated){
throw new Exception("Auth required", 401);
throw new Exception("Authorization required", 401);
}
} else {
throw new Exception("Auth required", 401);
throw new Exception("Authorization required", 401);
}
}