Skip to content

Commit

Permalink
Move verify_webauthn_otp to UserMultifactorMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshenny committed May 19, 2023
1 parent 49774d4 commit 4bfbf57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/models/concerns/user_multifactor_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ def mfa_required?

rubygems.mfa_required.any?
end

def verify_webauthn_otp(otp)
webauthn_verification&.verify_otp(otp)
end
end

class_methods do
Expand Down
6 changes: 6 additions & 0 deletions app/models/concerns/user_webauthn_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ def refresh_webauthn_verification
user_id: id
)
end

private

def verify_webauthn_otp(otp)
webauthn_verification&.verify_otp(otp)
end
end

0 comments on commit 4bfbf57

Please sign in to comment.