diff --git a/auth_user.php b/auth_user.php index 9d1d291..c0e967a 100644 --- a/auth_user.php +++ b/auth_user.php @@ -11,7 +11,7 @@ $pass = $_GET['pass']; $user = User :: find ($id); if ($user -> pass === $pass) - echo implode (',', [$user -> name]); + echo implode (',', [1, $user -> name]); else - echo 'error'; + echo '0';