itflow-org / itflow

Free and open-source web application for MSPs. Unifies IT documentation, ticketing, invoicing.
https://itflow.org
GNU General Public License v3.0
525 stars 143 forks source link

Set 2FA Remember-me cookie expiry #960

Closed wrongecho closed 1 month ago

wrongecho commented 2 months ago

Currently, the token is only valid for 2 days (86400 seconds = 24 hrs, multiplied by 2).

This PR adjusts the cookie expiry date to the number of days configured that tokens are cleared after. This should help ensure users are not prompted for 2FA every few days, even if they've set a longer interval.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
15.2% Duplication on New Code

See analysis details on SonarCloud

johnnyq commented 1 month ago

Good catch @wrongecho Thanks for the quick fix =]