Fix some tests.

This commit is contained in:
James Cole
2016-12-09 16:30:33 +01:00
parent 3f56a8ec53
commit cf34713518
6 changed files with 26 additions and 129 deletions

View File

@@ -49,7 +49,7 @@ class LoginController extends Controller
*
* @var string
*/
protected $redirectTo = '/home';
protected $redirectTo = '/';
/**
* Create a new controller instance.
@@ -71,10 +71,6 @@ class LoginController extends Controller
public function login(Request $request)
{
$this->validateLogin($request);
// 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 IP address of the client making these requests into this application.
$lockedOut = $this->hasTooManyLoginAttempts($request);
if ($lockedOut) {
$this->fireLockoutEvent($request);
@@ -83,7 +79,7 @@ class LoginController extends Controller
}
$credentials = $this->credentials($request);
$credentials['blocked'] = 0; // most not be blocked.
$credentials['blocked'] = 0; // must not be blocked.
if ($this->guard()->attempt($credentials, $request->has('remember'))) {
return $this->sendLoginResponse($request);