@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * @var ContainerInterface $setting |
17 | 17 | * |
18 | - */ |
|
18 | + */ |
|
19 | 19 | public function init() |
20 | 20 | { |
21 | 21 | $setting = $this->settings['translation']; |
@@ -24,14 +24,14 @@ |
||
24 | 24 | return isset($_SESSION['user']); |
25 | 25 | } |
26 | 26 | |
27 | - public function attempt(string $username,string $password) |
|
27 | + public function attempt(string $username, string $password) |
|
28 | 28 | { |
29 | 29 | $user = UserDataAccess::getUserLoginField($username)->first(); |
30 | 30 | |
31 | 31 | if (!$user) { |
32 | 32 | return false; |
33 | 33 | } |
34 | - if (password_verify($password,'')) { |
|
34 | + if (password_verify($password, '')) { |
|
35 | 35 | $_SESSION['user'] = $user->id; |
36 | 36 | return true; |
37 | 37 | } |