Skip to content

Commit

Permalink
improv: fix #46, launcher api
Browse files Browse the repository at this point in the history
  • Loading branch information
Eywek authored Jun 2, 2018
1 parent a3048c2 commit e546a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Controller/Component/APIComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function get($username, $password, array $args = null)

$user = $this->User->find('first', array('conditions' => array('pseudo' => $username, 'password' => $password)));
if (empty($user))
return ['status' => true];
return ['status' => false];
$user = $user['User'];

$result = ['status' => true];
Expand Down

0 comments on commit e546a52

Please sign in to comment.