mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update: middleware
This commit is contained in:
		| @@ -17,6 +17,7 @@ class User | ||||
|     { | ||||
|         if ($request->input('auth_data')) { | ||||
|             $authData = explode(':', base64_decode($request->input('auth_data'))); | ||||
|             if (!isset($authData[1]) || !isset($authData[0])) abort(500, '鉴权失败,请重新登入'); | ||||
|             $user = \App\Models\User::where('password', $authData[1]) | ||||
|                 ->where('email', $authData[0]) | ||||
|                 ->first(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user