@@ -13,17 +13,17 @@ discard block |
||
13 | 13 | |
14 | 14 | class LoginController extends Controller { |
15 | 15 | |
16 | - private $userRepository; |
|
16 | + private $userRepository; |
|
17 | 17 | |
18 | - public function __construct(UserRepository $repository) |
|
19 | - { |
|
20 | - $this->userRepository = $repository; |
|
21 | - } |
|
18 | + public function __construct(UserRepository $repository) |
|
19 | + { |
|
20 | + $this->userRepository = $repository; |
|
21 | + } |
|
22 | 22 | |
23 | - public function getLoginForm() |
|
24 | - { |
|
25 | - return view('public.login'); |
|
26 | - } |
|
23 | + public function getLoginForm() |
|
24 | + { |
|
25 | + return view('public.login'); |
|
26 | + } |
|
27 | 27 | |
28 | 28 | public function loginAttempt(Request $request) |
29 | 29 | { |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | |
44 | 44 | try |
45 | 45 | { |
46 | - $user = $this->userRepository->findActive($email); |
|
46 | + $user = $this->userRepository->findActive($email); |
|
47 | 47 | } |
48 | 48 | catch (RepositoryException $e) |
49 | 49 | { |
50 | - return redirect('/')->with('error', 'The email and password you entered don\'t match') |
|
50 | + return redirect('/')->with('error', 'The email and password you entered don\'t match') |
|
51 | 51 | ->with('email', $email); |
52 | 52 | } |
53 | 53 |