Skip to content

Commit

Permalink
Fallback to a 30 second period if an andOTP doesn't provide one
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbakker committed Apr 1, 2019
1 parent a251685 commit 4c1dec6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private static DatabaseEntry convertEntry(JSONObject obj) throws DatabaseImporte
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);
Expand Down

0 comments on commit 4c1dec6

Please sign in to comment.