Commit 8ce1acb
committed
fix(import): accept any positive-integer TOTP period
The otpauth importer rejected periods that were > 60 or not a divisor of
60, silently dropping valid values like 45, 90 or 120 and falling back to
30s, which produces wrong codes. Validate as a positive integer instead.
Refs Authenticator-Extension#1271, Authenticator-Extension#15081 parent ac1501d commit 8ce1acb
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
0 commit comments