=f.text_field:otp_attempt,class: 'form-control',required: true,autofocus: true,autocomplete: 'off',title: 'This field is required.'
=f.text_field:otp_attempt,class: 'form-control',required: true,autofocus: true,autocomplete: 'off',title: 'This field is required.',data: {qa_selector: 'two_fa_code_field'}
%p.form-text.text-muted.hint Enter the code from the two-factor app on your mobile device. If you've lost your device, you may enter one of your recovery codes.