Skip to content

Commit

Permalink
fix to all entries being recognized as TOTP entries
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippC committed Jan 24, 2021
1 parent 2e5ee5f commit cc7ee35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keepass2android/Totp/Keepass2TotpPluginAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public TotpData GetTotpData(IDictionary<string, string> entryFields, Context ctx
{
TotpData res = new TotpData();
byte[] pbSecret = (GetOtpSecret(entryFields, "TimeOtp-") ?? MemUtil.EmptyByteArray);
if (pbSecret == null)
if (pbSecret.Length == 0)
return res;

string strPeriod;
Expand Down

0 comments on commit cc7ee35

Please sign in to comment.