Increase max TOTP step to 24 hours

* Fixes #7095
This commit is contained in:
Jonathan White
2023-02-21 22:26:06 -05:00
parent 3bbaeab278
commit ba1bbd3b52
4 changed files with 9 additions and 2 deletions

View File

@@ -114,7 +114,7 @@ QSharedPointer<Totp::Settings> Totp::parseSettings(const QString& rawSettings, c
// Bound digits and step
settings->digits = qBound(1u, settings->digits, 10u);
settings->step = qBound(1u, settings->step, 60u);
settings->step = qBound(1u, settings->step, 86400u);
// Detect custom settings, used by setup GUI
if (settings->encoder.shortName.isEmpty()