diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2020-03-25 12:48:20 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-25 12:48:20 +1100 |
| commit | 40fb13ba3c2adac42e38336c0a66732e155df00c (patch) | |
| tree | 485e7404f8ead84a9005e6d81c44af3159b0978b /web/src/models/Configuration.ts | |
| parent | c057c917f62c2f2ec44769c9c8335792129b548b (diff) | |
[FEATURE] TOTP Tuning Configuration Options and Fix Timer Graphic (#773)
* Add period TOPT config key to define the time in seconds each OTP is rotated
* Add skew TOTP config to define how many keys either side of the current one should be considered valid
* Add tests and set minimum values
* Update config template
* Use unix epoch for position calculation and Fix QR gen
* This resolves the timer resetting improperly at the 0 seconds mark and allows for periods longer than 1 minute
* Generate QR based on period
* Fix OTP timer graphic
Diffstat (limited to 'web/src/models/Configuration.ts')
| -rw-r--r-- | web/src/models/Configuration.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web/src/models/Configuration.ts b/web/src/models/Configuration.ts index 6d2559d6c..709efa604 100644 --- a/web/src/models/Configuration.ts +++ b/web/src/models/Configuration.ts @@ -7,4 +7,5 @@ export interface Configuration { export interface ExtendedConfiguration { available_methods: Set<SecondFactorMethod>; second_factor_enabled: boolean; + totp_period: number; }
\ No newline at end of file |
