Skip to content

Commit

Permalink
Fix double personal key generation when using personal key as second …
Browse files Browse the repository at this point in the history
…factor

changelog: Bug Fixes, Personal Keys, Fix double personal key generation when using personal key as second factor
  • Loading branch information
mitchellhenke committed Sep 12, 2024
1 parent d570405 commit dd9c120
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def alert_user_about_personal_key_sign_in(disavowal_token)

def remove_personal_key
# for now we will regenerate a key and not show it to them so retire personal key page shows
current_user.personal_key = PersonalKeyGenerator.new(current_user).create
current_user.save!
PersonalKeyGenerator.new(current_user).create
user_session.delete(:personal_key)
end

Expand Down

0 comments on commit dd9c120

Please sign in to comment.