71 lines
1.3 KiB
PHP
71 lines
1.3 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
* Auth container binding
|
|
*/
|
|
|
|
'enabled' => env('MFA_ENABLED', env('2FA_ENABLED', true)),
|
|
|
|
/*
|
|
* Lifetime in minutes.
|
|
* In case you need your users to be asked for a new one time passwords from time to time.
|
|
*/
|
|
|
|
'lifetime' => 0, // 0 = eternal
|
|
|
|
/*
|
|
* Renew lifetime at every new request.
|
|
*/
|
|
|
|
'keep_alive' => true,
|
|
|
|
/*
|
|
* Auth container binding
|
|
*/
|
|
|
|
'auth' => 'auth',
|
|
|
|
/*
|
|
* 2FA verified session var
|
|
*/
|
|
|
|
'session_var' => 'google2fa',
|
|
|
|
/*
|
|
* One Time Password request input name
|
|
*/
|
|
'otp_input' => 'one_time_password',
|
|
|
|
/*
|
|
* One Time Password Window
|
|
*/
|
|
'window' => 8,
|
|
|
|
/*
|
|
* Forbid user to reuse One Time Passwords.
|
|
*/
|
|
'forbid_old_passwords' => false,
|
|
|
|
/*
|
|
* User's table column for google2fa secret
|
|
*/
|
|
'otp_secret_column' => 'google2fa_secret',
|
|
|
|
/*
|
|
* One Time Password View
|
|
*/
|
|
'view' => 'auth/validate2fa',
|
|
|
|
/*
|
|
* One Time Password error message
|
|
*/
|
|
'error_messages' => [
|
|
'wrong_otp' => 'The two factor authentication has failed.',
|
|
'cannot_be_empty' => 'One Time Password cannot be empty.',
|
|
'unknown' => 'An unknown error has occurred. Please try again.',
|
|
],
|
|
|
|
];
|