mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
More code cleanup
This commit is contained in:
@@ -24,9 +24,7 @@ declare(strict_types=1);
|
||||
use PragmaRX\Google2FALaravel\Support\Constants;
|
||||
|
||||
return [
|
||||
/*
|
||||
* Auth container binding
|
||||
*/
|
||||
// Auth container binding
|
||||
|
||||
'enabled' => true,
|
||||
|
||||
@@ -37,63 +35,42 @@ return [
|
||||
|
||||
'lifetime' => 0, // 0 = eternal
|
||||
|
||||
/*
|
||||
* Renew lifetime at every new request.
|
||||
*/
|
||||
// Renew lifetime at every new request.
|
||||
|
||||
'keep_alive' => true,
|
||||
|
||||
/*
|
||||
* Auth container binding
|
||||
*/
|
||||
// Auth container binding
|
||||
|
||||
'auth' => 'auth',
|
||||
|
||||
/*
|
||||
* 2FA verified session var
|
||||
*/
|
||||
// 2FA verified session var
|
||||
|
||||
'session_var' => 'google2fa',
|
||||
|
||||
/*
|
||||
* One Time Password request input name
|
||||
*/
|
||||
// One Time Password request input name
|
||||
'otp_input' => 'one_time_password',
|
||||
|
||||
/*
|
||||
* One Time Password Window
|
||||
*/
|
||||
// One Time Password Window
|
||||
'window' => 1,
|
||||
|
||||
/*
|
||||
* Forbid user to reuse One Time Passwords.
|
||||
*/
|
||||
// Forbid user to reuse One Time Passwords.
|
||||
'forbid_old_passwords' => false,
|
||||
|
||||
/*
|
||||
* User's table column for google2fa secret
|
||||
*/
|
||||
// User's table column for google2fa secret
|
||||
'otp_secret_column' => 'mfa_secret',
|
||||
|
||||
/*
|
||||
* One Time Password View
|
||||
*/
|
||||
// One Time Password View
|
||||
'view' => 'auth.mfa',
|
||||
|
||||
/*
|
||||
* One Time Password error message
|
||||
*/
|
||||
// One Time Password error message
|
||||
'error_messages' => [
|
||||
'wrong_otp' => "The 'One Time Password' typed was wrong.",
|
||||
],
|
||||
|
||||
/*
|
||||
* Throw exceptions or just fire events?
|
||||
*/
|
||||
// Throw exceptions or just fire events?
|
||||
'throw_exceptions' => true,
|
||||
|
||||
'store_in_cookie' => true,
|
||||
|
||||
'qrcode_image_backend' => Constants::QRCODE_IMAGE_BACKEND_SVG,
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user