Sha256: 34ca87d6059ba716273fe447e38cf67091207e77f55f1257de87960274e44db8
Contents?: true
Size: 383 Bytes
Versions: 2
Compression:
Stored size: 383 Bytes
Contents
require "otp/base" module OTP class HOTP < OTP::Base attr_accessor :count def initialize(*args) super self.count = 0 end def moving_factor return count end def uri_params return super.merge(count: count) end def extract_uri_params(params) super self.count = (params["count"] || count).to_i end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
otp-0.0.11 | lib/otp/hotp.rb |
otp-0.0.10 | lib/otp/hotp.rb |