Skip to content

Commit 7d3bc7a

Browse files
lonnieezelldatamweb
andcommitted
Apply suggestions from code review
Co-authored-by: Pooya Parsa Dadashi <pooya_parsa_dadashi@yahoo.com>
1 parent d37cf14 commit 7d3bc7a

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

docs/authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ if ($user->isActivated()) {
252252
}
253253
```
254254

255-
Note: If no activator is specified in the `Auth` config file, `actions['register']` property, then this will always return `true`.
255+
> **Note** If no activator is specified in the `Auth` config file, `actions['register']` property, then this will always return `true`.
256256
257257
You can check if a user has not been activated yet via the `isNotActivated()` method.
258258

src/Language/en/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'successLogout' => 'You have successfully logged out.',
4949

5050
// Passwords
51-
'errorPasswordLength' => 'Passwords must be at least {0activationBlocked, number} characters long.',
51+
'errorPasswordLength' => 'Passwords must be at least {0, number} characters long.',
5252
'suggestPasswordLength' => 'Pass phrases - up to 255 characters long - make more secure passwords that are easy to remember.',
5353
'errorPasswordCommon' => 'Password must not be a common password.',
5454
'suggestPasswordCommon' => 'The password was checked against over 65k commonly used passwords or passwords that have been leaked through hacks.',

src/Language/fa/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
'emailActivateMailBody' => 'لطفا برای فعالسازی حساب کاربری و استفاده از سایت از کد زیر استفاده کنید.',
8888
'invalidActivateToken' => 'کد صحیح نمی باشد.',
8989
'needActivate' => 'شما باید با ارائه کد ارسال شده به ایمیلتان، ثبت نام را تکمیل کنید.',
90-
'activationBlocked' => '(to be translated) You must activate your account before logging in.',
90+
'activationBlocked' => 'قبل از تلاش برای ورود، باید اکانت خود را فعال کنید.',
9191

9292
// Groups
9393
'unknownGroup' => '{0} گروهی معتبر نیست.',

src/Traits/Activatable.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public function isNotActivated(): bool
2929
*/
3030
public function activate(): bool
3131
{
32-
helper('auth');
3332
$model = auth()->getProvider();
3433

3534
return $model->update($this->id, ['active' => 1]);
@@ -40,7 +39,6 @@ public function activate(): bool
4039
*/
4140
public function deactivate(): bool
4241
{
43-
helper('auth');
4442
$model = auth()->getProvider();
4543

4644
return $model->update($this->id, ['active' => 0]);

0 commit comments

Comments
 (0)