mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
check that period is positive value
This commit is contained in:
@@ -30,7 +30,10 @@ export class TotpService implements TotpServiceAbstraction {
|
||||
}
|
||||
if (params.has('period') && params.get('period') != null) {
|
||||
try {
|
||||
period = parseInt(params.get('period').trim(), null);
|
||||
const periodParam = parseInt(params.get('period').trim(), null);
|
||||
if (periodParam > 0) {
|
||||
period = periodParam;
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
if (params.has('secret') && params.get('secret') != null) {
|
||||
|
||||
Reference in New Issue
Block a user