Skip to content

Commit

Permalink
Fix broken code from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleiguaran committed Apr 25, 2023
1 parent 4f0355d commit 1deb128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model/one_time_password.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def hotp_code(options = {})
end

def totp_code(options = {})
time = if options.is_a?(Hash) ? options.fetch(:time, Time.now) : options
time = options.is_a?(Hash) ? options.fetch(:time, Time.now) : options

ROTP::TOTP.new(otp_column, digits: otp_digits, interval: otp_interval).at(time)
end
Expand Down

0 comments on commit 1deb128

Please sign in to comment.