src/Http/Api/IssueController.php 1 location
|
@@ 2503-2510 (lines=8) @@
|
2500 |
|
$emsgs = array_filter($err_msgs); |
2501 |
|
} |
2502 |
|
|
2503 |
|
if ($emsgs) { |
2504 |
|
return response()->json([ 'ecode' => -11146, 'emsg' => $emsgs ]); |
2505 |
|
} |
2506 |
|
else |
2507 |
|
{ |
2508 |
|
return response()->json([ 'ecode' => 0, 'emsg' => '' ]); |
2509 |
|
} |
2510 |
|
} |
2511 |
|
|
2512 |
|
/** |
2513 |
|
* import the issue into the project |
src/Http/Api/UserController.php 1 location
|
@@ 56-63 (lines=8) @@
|
53 |
|
} |
54 |
|
|
55 |
|
$user = Sentinel::authenticate([ 'email' => $email, 'password' => $password ]); |
56 |
|
if ($user) { |
57 |
|
return response()->json([ 'ecode' => 0, 'data' => $user ]); |
58 |
|
} |
59 |
|
else |
60 |
|
{ |
61 |
|
return response()->json([ 'ecode' => -10000, 'data' => [] ]); |
62 |
|
} |
63 |
|
} |
64 |
|
|
65 |
|
/** |
66 |
|
* Display a listing of the resource. |