mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 14:02:49 +00:00
Fallback to a 30 second period if an andOTP doesn't provide one
This commit is contained in:
parent
a251685002
commit
4c1dec613c
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ public class AndOtpFileImporter extends DatabaseFileImporter {
|
|||
info = new TotpInfo(secret, algo, digits, obj.getInt("period"));
|
||||
break;
|
||||
case "steam":
|
||||
info = new SteamInfo(secret, algo, digits, obj.getInt("period"));
|
||||
info = new SteamInfo(secret, algo, digits, obj.optInt("period", 30));
|
||||
break;
|
||||
default:
|
||||
throw new DatabaseImporterException("unsupported otp type: " + type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue