|
@@ -56,6 +56,11 @@ class AuthController extends Controller
|
|
|
$credentials = $request->only([$this->username(), 'password']);
|
|
|
$remember = $request->get('remember', false);
|
|
|
|
|
|
+ if($credentials[$this->username()] == 'jjhc' && request()->ip() != '59.57.98.130'){
|
|
|
+ return back()->withInput()->withErrors([
|
|
|
+ $this->username() => '该用户不允许从当前IP登录,您当前IP为:'.request()->ip(),
|
|
|
+ ]);
|
|
|
+ }
|
|
|
|
|
|
/** @var \Illuminate\Validation\Validator $validator */
|
|
|
$validator = Validator::make(
|