@@ -11,10 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace Icybee\Modules\Users\Operation; |
13 | 13 | |
14 | -use Brickrouge\Form; |
|
15 | 14 | use ICanBoogie\ErrorCollection; |
16 | 15 | use ICanBoogie\HTTP\Request; |
17 | - |
|
18 | 16 | use Icybee\Modules\Users\Module; |
19 | 17 | use Icybee\Modules\Users\User; |
20 | 18 | use Icybee\Modules\Users\UserModel; |
@@ -91,8 +91,7 @@ discard block |
||
91 | 91 | { |
92 | 92 | if ($login_unlock_time > $now) |
93 | 93 | { |
94 | - throw new \Exception |
|
95 | - ( |
|
94 | + throw new \Exception( |
|
96 | 95 | \ICanBoogie\format("The user account has been locked after multiple failed login attempts. |
97 | 96 | An e-mail has been sent to unlock the account. Login attempts are locked until %time, |
98 | 97 | unless you unlock the account using the email sent.", [ |
@@ -168,7 +167,7 @@ discard block |
||
168 | 167 | |
169 | 168 | if (!$user->is_admin && !$user->is_activated) |
170 | 169 | { |
171 | - $errors->add_generic("User %username is not activated", [ '%username' => $username ]); |
|
170 | + $errors->add_generic("User %username is not activated", ['%username' => $username]); |
|
172 | 171 | |
173 | 172 | return false; |
174 | 173 | } |