update: quick login url

This commit is contained in:
tokumeikoi 2021-07-19 21:17:34 +09:00
parent 42d755c7d9
commit af901291a5

View File

@ -204,6 +204,7 @@ class AuthController extends Controller
public function getQuickLoginUrl(Request $request) public function getQuickLoginUrl(Request $request)
{ {
$authData = explode(':', base64_decode($request->input('auth_data'))); $authData = explode(':', base64_decode($request->input('auth_data')));
if (!isset($authData[0])) abort(403, __('Token error'));
$user = User::where('email', $authData[0]) $user = User::where('email', $authData[0])
->where('password', $authData[1]) ->where('password', $authData[1])
->first(); ->first();