Hi 💟 -Flarum-Community,
I am looking for a way to configure the validity period of the confirmation tokens.
So the validity period of the confirmation codes or links for account activation and or password reset.
See database entries/tables "flarum_email_tokens", "flarum_password_tokens", "flarum_registration_tokens" and "flarum_access_tokens".
Unfortunately I didn't find anything directly and so I asked ChatGPT. It suggested me the following lines for the config.php:
'auth.confirmation_token_lifetime' => 'P1D',
or
'auth' => [
'confirmation_token_lifetime' => 'P1D',
'password_reset_lifetime' => 'P1D'
],
or
return [
// ...
'token_lifetime' => 172800,
// ...
];
Unfortunately this doesn't work, or I did something wrong and in the official documentation these settings don't show up....
So I hope for hints ☺️