app/controllers/registrations_controller.rb
Complex method RegistrationsController#disable_two_factor (25.4) Open
Open
def disable_two_factor
verify_token = Authy::API.verify(id: current_user.authy_id, token: params[:token], force: true)
if verify_token.ok?
disable_authy = Authy::API.delete_user(id: current_user.authy_id)
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool