Closed romainpoirier closed 5 years ago
Using this setting value in my config/general.php file: 'userSessionDuration' => 0, // users will stay logged in as long as its browser is open https://docs.craftcms.com/v3/config/config-settings.html#usersessionduration
config/general.php
'userSessionDuration' => 0, // users will stay logged in as long as its browser is open
I get this error: Exception DateInterval::__construct(): Unknown or bad format (PT-1S)
Exception DateInterval::__construct(): Unknown or bad format (PT-1S)
born05/craft-twofactorauthentication/src/services/Verify.php @ line 54: $minimalSessionDate->sub(new DateInterval('PT' . $sessionDuration . 'S'));
born05/craft-twofactorauthentication/src/services/Verify.php
$minimalSessionDate->sub(new DateInterval('PT' . $sessionDuration . 'S'));
craft-twofactorauthentication version: 2.2.0
craft-twofactorauthentication
@romainpoirier That is one of the requirements: "userSessionDuration in the general.php config should be larger than 0" As discussed in #23
Using this setting value in my
config/general.php
file:'userSessionDuration' => 0, // users will stay logged in as long as its browser is open
https://docs.craftcms.com/v3/config/config-settings.html#usersessiondurationI get this error:
Exception DateInterval::__construct(): Unknown or bad format (PT-1S)
born05/craft-twofactorauthentication/src/services/Verify.php
@ line 54:$minimalSessionDate->sub(new DateInterval('PT' . $sessionDuration . 'S'));
craft-twofactorauthentication
version: 2.2.0