Commits

Devin Martin  committed 0ce3455

Fixed critical bug with the serialization of step window size and digit count. Fixes issue #2

  • Participants
  • Parent commits 0d75e0c

Comments (0)

Files changed (1)

File OtpAuthData.cs

 
         private static int GetIntOrDefault(NameValueCollection parameters, string parameterKey, int defaultValue)
         {
-            if (parameters[stepParameter] != null)
+            if (parameters[parameterKey] != null)
             {
                 int step;
-                if (int.TryParse(parameters[stepParameter], out step))
+                if (int.TryParse(parameters[parameterKey], out step))
                     return step;
                 else
                     return defaultValue;