mirror of
https://github.com/easychen/pushdeer.git
synced 2025-01-09 14:35:32 +08:00
make fake login debug only
This commit is contained in:
parent
539a41da62
commit
aa1fd8ea01
@ -15,6 +15,10 @@ class PushDeerUserController extends Controller
|
|||||||
|
|
||||||
public function fakeLogin(Request $request)
|
public function fakeLogin(Request $request)
|
||||||
{
|
{
|
||||||
|
if (!env('APP_DEBUG')) {
|
||||||
|
return send_error('Debug only', ErrorCode('ARGS'));
|
||||||
|
}
|
||||||
|
|
||||||
$info = [
|
$info = [
|
||||||
'uid' => 'theid999',
|
'uid' => 'theid999',
|
||||||
'email' => 'easychen+new@gmail.com',
|
'email' => 'easychen+new@gmail.com',
|
||||||
|
Loading…
Reference in New Issue
Block a user