Merge branch 'remastering' of https://git.steelants.cz/SImple-Home/PHP_SMART_HOME_V3 into remastering
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
class AuthApi {
 | 
					class AuthApi extends ApiController {
 | 
				
			||||||
	public function login(){
 | 
						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) {
 | 
							if (!$token) {
 | 
				
			||||||
			throw new Exception("Auth failed", 401);
 | 
								throw new Exception("Auth failed", 401);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user