lib/otp/hotp.rb in otp-0.0.9 vs lib/otp/hotp.rb in otp-0.0.10
- old
+ new
@@ -11,16 +11,15 @@
def moving_factor
return count
end
- def type_specific_uri_params
- return {count: count}
+ def uri_params
+ return super.merge(count: count)
end
- def extract_type_specific_uri_params(query)
- if value = query["count"]
- self.count = value.to_i
- end
+ def extract_uri_params(params)
+ super
+ self.count = (params["count"] || count).to_i
end
end
end