@@ -15,27 +15,27 @@ |
||
15 | 15 | const USER_ENABLED = 1; |
16 | 16 | |
17 | 17 | const USER_STATUS = [ |
18 | - 0 => [ 'text' => 'users.disabled', |
|
18 | + 0 => ['text' => 'users.disabled', |
|
19 | 19 | 'icon' => '', |
20 | - 'unicon' => '' ], |
|
21 | - 1 => [ 'text' => 'users.enabled', |
|
20 | + 'unicon' => ''], |
|
21 | + 1 => ['text' => 'users.enabled', |
|
22 | 22 | 'icon' => 'fa-check', |
23 | - 'unicon' => '' ] |
|
23 | + 'unicon' => ''] |
|
24 | 24 | ]; |
25 | 25 | |
26 | 26 | const USER_LEVEL = [ |
27 | - 1 => [ 'text' => 'users.access.local', |
|
27 | + 1 => ['text' => 'users.access.local', |
|
28 | 28 | 'icon' => 'fa-support', |
29 | - 'unicon' => '' ], |
|
30 | - 3 => [ 'text' => 'users.access.global', |
|
29 | + 'unicon' => ''], |
|
30 | + 3 => ['text' => 'users.access.global', |
|
31 | 31 | 'icon' => 'fa-globe', |
32 | - 'unicon' => '' ], |
|
33 | - 5 => [ 'text' => 'users.access.admin', |
|
32 | + 'unicon' => ''], |
|
33 | + 5 => ['text' => 'users.access.admin', |
|
34 | 34 | 'icon' => 'fa-shield', |
35 | - 'unicon' => '' ], |
|
36 | - 9 => [ 'text' => 'users.access.super', |
|
35 | + 'unicon' => ''], |
|
36 | + 9 => ['text' => 'users.access.super', |
|
37 | 37 | 'icon' => 'fa-rocket', |
38 | - 'unicon' => '' ], |
|
38 | + 'unicon' => ''], |
|
39 | 39 | ]; |
40 | 40 | |
41 | 41 | const SEARCH_CRITERIA = [ |
@@ -68,10 +68,10 @@ |
||
68 | 68 | $credentials = $request->only('email', 'password'); |
69 | 69 | |
70 | 70 | if (Auth::attempt([ |
71 | - 'email' => $credentials['email'], |
|
72 | - 'password' => $credentials['password'], |
|
73 | - 'status' => App\User::USER_ENABLED |
|
74 | - ])) { |
|
71 | + 'email' => $credentials['email'], |
|
72 | + 'password' => $credentials['password'], |
|
73 | + 'status' => App\User::USER_ENABLED |
|
74 | + ])) { |
|
75 | 75 | // Authentication passed... |
76 | 76 | return redirect()->intended('home'); |
77 | 77 | } |