make fake login debug only

This commit is contained in:
EasyChen 2022-01-17 13:08:45 +08:00
parent 539a41da62
commit aa1fd8ea01
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ class PushDeerUserController extends Controller
public function fakeLogin(Request $request)
{
if (!env('APP_DEBUG')) {
return send_error('Debug only', ErrorCode('ARGS'));
}
$info = [
'uid' => 'theid999',
'email' => 'easychen+new@gmail.com',