Skip to content

Commit 616bf9f

Browse files
authored
Merge pull request #36 from rappasoft/develop
v1.3.0
2 parents b8a5d24 + 44202a8 commit 616bf9f

File tree

7 files changed

+48
-40
lines changed

7 files changed

+48
-40
lines changed

CHANGELOG.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,45 @@
22

33
All notable changes to `Laravel Authentication Log` will be documented in this file.
44

5+
### 1.3.0 - 2022-01-17
6+
7+
### Changed
8+
9+
- Added missing `hasTranslations()` - https://github.com/rappasoft/laravel-authentication-log/pull/30
10+
- Improve translation strings - https://github.com/rappasoft/laravel-authentication-log/pull/31
11+
512
### 1.2.1 - 2021-12-02
613

714
### Added
815

9-
- Added latestAuthentication relationship - https://github.com/rappasoft/laravel-authentication-log/pull/24
16+
- Added latestAuthentication relationship - https://github.com/rappasoft/laravel-authentication-log/pull/24
1017

1118
### Changed
1219

13-
- Fixed issue with PHP 7.4 - https://github.com/rappasoft/laravel-authentication-log/pull/22
20+
- Fixed issue with PHP 7.4 - https://github.com/rappasoft/laravel-authentication-log/pull/22
1421

1522
### 1.2.0 - 2021-11-21
1623

1724
### Added
1825

19-
- Fire a successful login after a failed login on an unknown (new) device. - https://github.com/rappasoft/laravel-authentication-log/pull/15
20-
- Make the events the package is listening for configurable in the config file
21-
- Added French translation and missing location translations - https://github.com/rappasoft/laravel-authentication-log/pull/18
22-
- PHP 7.4 Support
26+
- Fire a successful login after a failed login on an unknown (new) device. - https://github.com/rappasoft/laravel-authentication-log/pull/15
27+
- Make the events the package is listening for configurable in the config file
28+
- Added French translation and missing location translations - https://github.com/rappasoft/laravel-authentication-log/pull/18
29+
- PHP 7.4 Support
2330

2431
### 1.1.1 - 2021-10-20
2532

2633
### Changed
2734

28-
- Logout listener bug fix - https://github.com/rappasoft/laravel-authentication-log/pull/10
35+
- Logout listener bug fix - https://github.com/rappasoft/laravel-authentication-log/pull/10
2936

3037
### 1.1.0 - 2021-10-11
3138

3239
### Added
3340

34-
- Known issues section to readme
35-
- Ability to set DB connection type - https://github.com/rappasoft/laravel-authentication-log/pull/4
41+
- Known issues section to readme
42+
- Ability to set DB connection type - https://github.com/rappasoft/laravel-authentication-log/pull/4
3643

3744
## 1.0.0 - 2021-09-30
3845

39-
- Initial Release
46+
- Initial Release

docs/start/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ return [
3232

3333
// The database connection where the authentication_log table resides. Leave empty to use the default
3434
'db_connection' => null,
35-
35+
3636
// The events the package listens for to log (as of v1.3)
3737
'events' => [
3838
'login' => \Illuminate\Auth\Events\Login::class,
@@ -95,7 +95,7 @@ The package will listen for Laravel's Login, Logout, Failed, and OtherDeviceLogo
9595

9696
## Overriding default Laravel events
9797

98-
If you would like to listen to your own events you may override them in the package config (as of v1.3).
98+
If you would like to listen to your own events you may override them in the package config (as of v1.2).
9999

100100
### Example event override
101101

resources/lang/en.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"A failed login to your account": "A failed login to your account",
3-
"Account": "Account",
4-
"Browser": "Browser",
5-
"Hello": "Hello",
3+
"Account:": "Account:",
4+
"Browser:": "Browser:",
5+
"Hello!": "Hello!",
66
"If this was you, you can ignore this alert. If you suspect any suspicious activity on your account, please change your password.": "If this was you, you can ignore this alert. If you suspect any suspicious activity on your account, please change your password.",
7-
"IP Address": "IP Address",
8-
"Location": "Location",
9-
"Regards": "Regards",
7+
"IP Address:": "IP Address:",
8+
"Location:": "Location:",
9+
"Regards,": "Regards,",
1010
"There has been a failed login attempt to your :app account.": "There has been a failed login attempt to your :app account.",
11-
"Time": "Time",
11+
"Time:": "Time:",
1212
"Unknown City": "Unknown City",
1313
"Unknown State": "Unknown State",
1414
"Your :app account logged in from a new device.": "Your :app account logged in from a new device."

resources/lang/fr.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"A failed login to your account": "Échec de la connexion à votre compte",
3-
"Account": "Compte",
4-
"Browser": "Navigateur",
5-
"Hello": "Bonjour",
3+
"Account:": "Compte :",
4+
"Browser:": "Navigateur :",
5+
"Hello!": "Bonjour,",
66
"If this was you, you can ignore this alert. If you suspect any suspicious activity on your account, please change your password.": "Si c’était vous, vous pouvez ignorer cette alerte. Si vous soupçonnez une activité suspecte sur votre compte, veuillez modifier votre mot de passe.",
7-
"IP Address": "Adresse IP",
8-
"Location": "Emplacement",
9-
"Regards": "Cordialement",
7+
"IP Address:": "Adresse IP :",
8+
"Location:": "Emplacement :",
9+
"Regards,": "Cordialement,",
1010
"There has been a failed login attempt to your :app account.": "Une tentative de connexion à votre compte sur :app a échoué.",
11-
"Time": "Heure",
11+
"Time:": "Heure :",
1212
"Unknown City": "Ville inconnue",
1313
"Unknown State": "État inconnu",
1414
"Your :app account logged in from a new device.": "Connexion à votre compte sur :app depuis un nouvel appareil."
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
@component('mail::message')
2-
# @lang('Hello')!
2+
# @lang('Hello!')
33

44
@lang('There has been a failed login attempt to your :app account.', ['app' => config('app.name')])
55

6-
> **@lang('Account'):** {{ $account->email }}<br/>
7-
> **@lang('Time'):** {{ $time->toCookieString() }}<br/>
8-
> **@lang('IP Address'):** {{ $ipAddress }}<br/>
9-
> **@lang('Browser'):** {{ $browser }}<br/>
6+
> **@lang('Account:')** {{ $account->email }}<br/>
7+
> **@lang('Time:')** {{ $time->toCookieString() }}<br/>
8+
> **@lang('IP Address:')** {{ $ipAddress }}<br/>
9+
> **@lang('Browser:')** {{ $browser }}<br/>
1010
@if ($location && $location['default'] === false)
11-
> **@lang('Location'):** {{ $location['city'] ?? __('Unknown City') }}, {{ $location['state'], __('Unknown State') }}
11+
> **@lang('Location:')** {{ $location['city'] ?? __('Unknown City') }}, {{ $location['state'], __('Unknown State') }}
1212
@endif
1313

1414
@lang('If this was you, you can ignore this alert. If you suspect any suspicious activity on your account, please change your password.')
1515

16-
@lang('Regards'),<br/>
16+
@lang('Regards,')<br/>
1717
{{ config('app.name') }}
1818
@endcomponent
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
@component('mail::message')
2-
# @lang('Hello')!
2+
# @lang('Hello!')
33

44
@lang('Your :app account logged in from a new device.', ['app' => config('app.name')])
55

6-
> **@lang('Account'):** {{ $account->email }}<br/>
7-
> **@lang('Time'):** {{ $time->toCookieString() }}<br/>
8-
> **@lang('IP Address'):** {{ $ipAddress }}<br/>
9-
> **@lang('Browser'):** {{ $browser }}<br/>
6+
> **@lang('Account:')** {{ $account->email }}<br/>
7+
> **@lang('Time:')** {{ $time->toCookieString() }}<br/>
8+
> **@lang('IP Address:')** {{ $ipAddress }}<br/>
9+
> **@lang('Browser:')** {{ $browser }}<br/>
1010
@if ($location && $location['default'] === false)
11-
> **@lang('Location'):** {{ $location['city'] ?? __('Unknown City') }}, {{ $location['state'], __('Unknown State') }}
11+
> **@lang('Location:')** {{ $location['city'] ?? __('Unknown City') }}, {{ $location['state'], __('Unknown State') }}
1212
@endif
1313

1414
@lang('If this was you, you can ignore this alert. If you suspect any suspicious activity on your account, please change your password.')
1515

16-
@lang('Regards'),<br/>
16+
@lang('Regards,')<br/>
1717
{{ config('app.name') }}
1818
@endcomponent

src/LaravelAuthenticationLogServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function configurePackage(Package $package): void
2222
$package
2323
->name('laravel-authentication-log')
2424
->hasConfigFile()
25+
->hasTranslations()
2526
->hasViews()
2627
->hasMigration('create_authentication_log_table')
2728
->hasCommand(PurgeAuthenticationLogCommand::class);

0 commit comments

Comments
 (0)