lib/otp/hotp.rb in otp-0.0.2 vs lib/otp/hotp.rb in otp-0.0.3
- old
+ new
@@ -10,7 +10,17 @@
end
def moving_factor
return count
end
+
+ def type_specific_uri_params
+ return {count: count}
+ end
+
+ def extract_type_specific_uri_params(query)
+ if value = query["count"]
+ self.count = value.to_i
+ end
+ end
end
end