<commit_before>- page_title 'Two-factor Authentication', 'Account'

%h2.page-title Two-Factor Authentication (2FA)
%p
  Download the Google Authenticator application from App Store for iOS or
  Google Play for Android and scan this code.

%hr

= form_tag profile_two_factor_auth_path, method: :post, class: 'form-horizontal' do |f|
  - if @error
    .alert.alert-danger
      = @error
  .form-group
    .col-sm-2
    .col-sm-10
      = raw @qr_code
  .form-group
    = label_tag :pin_code, nil, class: "control-label"
    .col-sm-10
      = text_field_tag :pin_code, nil, class: "form-control", required: true
  .form-actions
    = submit_tag 'Submit', class: 'btn btn-success'<commit_msg>Autofocus the pin field on 2FA enable form<commit_after>- page_title 'Two-factor Authentication', 'Account'

%h2.page-title Two-Factor Authentication (2FA)
%p
  Download the Google Authenticator application from App Store for iOS or
  Google Play for Android and scan this code.

%hr

= form_tag profile_two_factor_auth_path, method: :post, class: 'form-horizontal' do |f|
  - if @error
    .alert.alert-danger
      = @error
  .form-group
    .col-sm-2
    .col-sm-10
      = raw @qr_code
  .form-group
    = label_tag :pin_code, nil, class: "control-label"
    .col-sm-10
      = text_field_tag :pin_code, nil, class: "form-control", required: true, autofocus: true
  .form-actions
    = submit_tag 'Submit', class: 'btn btn-success'
{'fraction_non_alphanumeric': 0.11376404494382023, 'fraction_numerical': 0.010533707865168539, 'mean_word_length': 3.3445121951219514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1555660', 'n_tokens_mistral': 498, 'n_tokens_neox': 486, 'n_words': 142}