Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/config/auth.php
7382 views
1
<?php
2
3
return [
4
/*
5
|--------------------------------------------------------------------------
6
| Lockout Configuration
7
|--------------------------------------------------------------------------
8
|
9
| These options are Pterodactyl specific and allow you to configure how
10
| long a user should be locked out for if they input a username or
11
| password incorrectly.
12
|
13
*/
14
15
'lockout' => [
16
'time' => 2,
17
'attempts' => 3,
18
],
19
20
/*
21
|--------------------------------------------------------------------------
22
| Authentication Defaults
23
|--------------------------------------------------------------------------
24
|
25
| This option defines the default authentication "guard" and password
26
| reset "broker" for your application. You may change these values
27
| as required, but they're a perfect start for most applications.
28
|
29
*/
30
31
'defaults' => [
32
'guard' => 'web',
33
'passwords' => 'users',
34
],
35
36
/*
37
|--------------------------------------------------------------------------
38
| Authentication Guards
39
|--------------------------------------------------------------------------
40
|
41
| Next, you may define every authentication guard for your application.
42
| Of course, a great default configuration has been defined for you
43
| which utilizes session storage plus the Eloquent user provider.
44
|
45
| All authentication guards have a user provider, which defines how the
46
| users are actually retrieved out of your database or other storage
47
| system used by the application. Typically, Eloquent is utilized.
48
|
49
| Supported: "session", "token"
50
|
51
*/
52
53
'guards' => [
54
'web' => [
55
'driver' => 'session',
56
'provider' => 'users',
57
],
58
59
'api' => [
60
'driver' => 'token',
61
'provider' => 'users',
62
],
63
],
64
65
/*
66
|--------------------------------------------------------------------------
67
| User Providers
68
|--------------------------------------------------------------------------
69
|
70
| All authentication guards have a user provider, which defines how the
71
| users are actually retrieved out of your database or other storage
72
| system used by the application. Typically, Eloquent is utilized.
73
|
74
| If you have multiple user tables or models you may configure multiple
75
| providers to represent the model / table. These providers may then
76
| be assigned to any extra authentication guards you have defined.
77
|
78
| Supported: "database", "eloquent"
79
|
80
*/
81
82
'providers' => [
83
'users' => [
84
'driver' => 'eloquent',
85
'model' => Pterodactyl\Models\User::class,
86
],
87
],
88
89
/*
90
|--------------------------------------------------------------------------
91
| Resetting Passwords
92
|--------------------------------------------------------------------------
93
|
94
| These configuration options specify the behavior of Laravel's password
95
| reset functionality, including the table utilized for token storage
96
| and the user provider that is invoked to actually retrieve users.
97
|
98
| The expiry time is the number of minutes that each reset token will be
99
| considered valid. This security feature keeps tokens short-lived so
100
| they have less time to be guessed. You may change this as needed.
101
|
102
| The throttle setting is the number of seconds a user must wait before
103
| generating more password reset tokens. This prevents the user from
104
| quickly generating a very large amount of password reset tokens.
105
|
106
*/
107
108
'passwords' => [
109
'users' => [
110
'provider' => 'users',
111
'table' => 'password_resets',
112
'expire' => 60,
113
'throttle' => 60,
114
],
115
],
116
117
/*
118
|--------------------------------------------------------------------------
119
| Password Confirmation Timeout
120
|--------------------------------------------------------------------------
121
|
122
| Here you may define the amount of seconds before a password confirmation
123
| window expires and users are asked to re-enter their password via the
124
| confirmation screen. By default, the timeout lasts for three hours.
125
|
126
*/
127
128
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
129
];
130
131