mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: quick login url
This commit is contained in:
parent
42d755c7d9
commit
af901291a5
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user