Use newer forgotten password variables
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
284dbb7553
commit
172e8d463f
2 changed files with 7 additions and 5 deletions
|
@ -147,6 +147,8 @@ AWS_DEFAULT_REGION=null
|
||||||
LOGIN_MAX_ATTEMPTS=5
|
LOGIN_MAX_ATTEMPTS=5
|
||||||
LOGIN_LOCKOUT_DURATION=60
|
LOGIN_LOCKOUT_DURATION=60
|
||||||
RESET_PASSWORD_LINK_EXPIRES=900
|
RESET_PASSWORD_LINK_EXPIRES=900
|
||||||
|
PASSWORD_MAX_ATTEMPTS=20
|
||||||
|
PASSWORD_LOCKOUT_DURATION=60
|
||||||
|
|
||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
# OPTIONAL: MISC
|
# OPTIONAL: MISC
|
||||||
|
|
|
@ -426,14 +426,14 @@ Route::group(['middleware' => 'web'], function () {
|
||||||
Route::post(
|
Route::post(
|
||||||
'two-factor',
|
'two-factor',
|
||||||
[LoginController::class, 'postTwoFactorAuth']
|
[LoginController::class, 'postTwoFactorAuth']
|
||||||
)->middleware('throttle:'.config('auth.passwords.users.throttle.max_attempts').','.config('auth.passwords.users.throttle.lockout_duration'));
|
)->middleware('throttle:'.config('auth.password_reset.throttle.max_attempts').','.config('auth.password_reset.throttle.lockout_duration'));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Route::post(
|
Route::post(
|
||||||
'password/email',
|
'password/email',
|
||||||
[ForgotPasswordController::class, 'sendResetLinkEmail']
|
[ForgotPasswordController::class, 'sendResetLinkEmail']
|
||||||
)->name('password.email')->middleware('throttle:'.config('auth.passwords.users.throttle.max_attempts').','.config('auth.passwords.users.throttle.lockout_duration'));
|
)->name('password.email')->middleware('throttle:'.config('auth.password_reset.throttle.max_attempts').','.config('auth.password_reset.throttle.lockout_duration'));
|
||||||
|
|
||||||
Route::get(
|
Route::get(
|
||||||
'password/reset',
|
'password/reset',
|
||||||
|
@ -444,7 +444,7 @@ Route::group(['middleware' => 'web'], function () {
|
||||||
Route::post(
|
Route::post(
|
||||||
'password/reset',
|
'password/reset',
|
||||||
[ResetPasswordController::class, 'reset']
|
[ResetPasswordController::class, 'reset']
|
||||||
)->name('password.update')->middleware('throttle:'.config('auth.passwords.users.throttle.password_max_attempts').','.config('auth.passwords.users.throttle.password_lockout_duration'));
|
)->name('password.update')->middleware('throttle:'.config('auth.password_reset.throttle.max_attempts').','.config('auth.password_reset.throttle.lockout_duration'));
|
||||||
|
|
||||||
Route::get(
|
Route::get(
|
||||||
'password/reset/{token}',
|
'password/reset/{token}',
|
||||||
|
@ -454,8 +454,8 @@ Route::group(['middleware' => 'web'], function () {
|
||||||
|
|
||||||
Route::post(
|
Route::post(
|
||||||
'password/email',
|
'password/email',
|
||||||
[ResetPasswordController::class, 'showLinkRequestForm']
|
[ForgotPasswordController::class, 'sendResetLinkEmail']
|
||||||
)->name('password.request')->middleware('throttle:'.config('auth.passwords.users.throttle.password_max_attempts').','.config('auth.passwords.users.throttle.password_lockout_duration'));
|
)->name('password.email')->middleware('throttle:'.config('auth.password_reset.throttle.max_attempts').','.config('auth.password_reset.throttle.lockout_duration'));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue