Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Remove unused methods in 2FA OTP Auth Controller (mastodon#24220)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Apr 7, 2023
1 parent 26682d4 commit d193bc8
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,9 @@ def create

private

def confirmation_params
params.require(:form_two_factor_confirmation).permit(:otp_attempt)
end

def verify_otp_not_enabled
redirect_to settings_two_factor_authentication_methods_path if current_user.otp_enabled?
end

def acceptable_code?
current_user.validate_and_consume_otp!(confirmation_params[:otp_attempt]) ||
current_user.invalidate_otp_backup_code!(confirmation_params[:otp_attempt])
end
end
end
end

0 comments on commit d193bc8

Please sign in to comment.