Skip to content

Commit

Permalink
[MODIFY] 로그인시 반환값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
J1NC committed Nov 10, 2018
1 parent 1fae83e commit 7eb07a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,12 @@ public function idCheck()
else
return -1;
}

public function myInfo()
{
return DB::table('User')
->select('u_name','u_idx')
->where('u_id','=',$this->id)
->get();
}
}
2 changes: 1 addition & 1 deletion app/Http/Controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function login()

$auth = new Auth();
$auth->setLogin($id, $password);
return response()->json(['Status' => $auth->login()], Response::HTTP_OK);
return response()->json(['Status' => $auth->login(), $auth->myInfo()], Response::HTTP_OK);
}

public function register()
Expand Down

0 comments on commit 7eb07a3

Please sign in to comment.