|
@@ -7,6 +7,7 @@ use Illuminate\Http\Response;
|
|
use App\Http\Controllers\Controller;
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\Lang;
|
|
use Illuminate\Support\Facades\Lang;
|
|
|
|
+use App\Http\Requests\CaseInsensitiveLogin;
|
|
use Illuminate\Validation\ValidationException;
|
|
use Illuminate\Validation\ValidationException;
|
|
use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
|
use Illuminate\Foundation\Auth\AuthenticatesUsers;
|
|
use Carbon\Carbon;
|
|
use Carbon\Carbon;
|
|
@@ -35,9 +36,8 @@ class LoginController extends Controller
|
|
*
|
|
*
|
|
* @throws \Illuminate\Validation\ValidationException
|
|
* @throws \Illuminate\Validation\ValidationException
|
|
*/
|
|
*/
|
|
- public function login(Request $request)
|
|
|
|
|
|
+ public function login(CaseInsensitiveLogin $request)
|
|
{
|
|
{
|
|
- $this->validateLogin($request);
|
|
|
|
|
|
|
|
// If the class is using the ThrottlesLogins trait, we can automatically throttle
|
|
// If the class is using the ThrottlesLogins trait, we can automatically throttle
|
|
// the login attempts for this application. We'll key this by the username and
|
|
// the login attempts for this application. We'll key this by the username and
|