Skip to content

Commit

Permalink
Revert "set webauthn id when active 2fa"
Browse files Browse the repository at this point in the history
This reverts commit 22fc4de.
  • Loading branch information
lazaronixon committed Apr 12, 2023
1 parent 75880a8 commit 99fd9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/authentication/templates/models/user.rb.tt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class User < ApplicationRecord
self.verified = false
end
<%- if webauthn? %>
before_validation if: :otp_secret_changed?, on: :update do
before_validation on: :create do
self.webauthn_id = WebAuthn.generate_user_id
end
<%- end -%>
Expand Down

0 comments on commit 99fd9a6

Please sign in to comment.