Skip to content

Commit 52fb4f5

Browse files
committed
Ship with support for login notifications
1 parent f1024ad commit 52fb4f5

File tree

4 files changed

+69
-5
lines changed

4 files changed

+69
-5
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,9 @@ public function register()
5252
if ($this->app->environment() !== 'production') {
5353
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
5454
}
55+
56+
if (config('pterodactyl.auth.notifications')) {
57+
$this->app->registe(\DaneEveritt\LoginNotifications\NotificationServiceProvider::class);
58+
}
5559
}
5660
}

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"php": ">=7.0.0",
1515
"aws/aws-sdk-php": "3.25.1",
1616
"barryvdh/laravel-debugbar": "2.3.2",
17+
"daneeveritt/login-notifications": "1.0.0",
1718
"doctrine/dbal": "2.5.12",
1819
"edvinaskrucas/settings": "2.0.0",
1920
"fideloper/proxy": "3.3.0",
@@ -54,10 +55,12 @@
5455
},
5556
"scripts": {
5657
"pre-install-cmd": [
58+
"php artisan config:clear",
5759
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
5860
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
5961
],
6062
"pre-update-cmd": [
63+
"php artisan config:clear",
6164
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
6265
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
6366
],
@@ -78,6 +81,7 @@
7881
"php artisan config:cache"
7982
]
8083
},
84+
"prefer-stable": true,
8185
"config": {
8286
"preferred-install": "dist",
8387
"sort-packages": true,

composer.lock

Lines changed: 50 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/pterodactyl.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@
1616
'author' => env('SERVICE_AUTHOR'),
1717
],
1818

19+
/*
20+
|--------------------------------------------------------------------------
21+
| Authentication
22+
|--------------------------------------------------------------------------
23+
|
24+
| Should login success and failure events trigger an email to the user?
25+
*/
26+
'auth' => [
27+
'notifications' => env('LOGIN_NOTIFICATIONS', false),
28+
],
29+
1930
/*
2031
|--------------------------------------------------------------------------
2132
| Pagination

0 commit comments

Comments
 (0)