app/views/casino/two_factor_authenticators/new.html.erb in casino-1.3.2 vs app/views/casino/two_factor_authenticators/new.html.erb in casino-2.0.0

- old
+ new

@@ -9,21 +9,21 @@ <p> <%= t('two_factor_authenticators.instructions') %> </p> <div id="qr-code"> - <img src="https://chart.googleapis.com/chart?cht=qr&chs=250x250&chl=<%= u "otpauth://totp/#{u CASinoCore::Settings.frontend[:sso_name] + ': ' + @two_factor_authenticator.user.username}?secret=#{@two_factor_authenticator.secret}" %>" height="250" width="250"><br /> + <img src="https://chart.googleapis.com/chart?cht=qr&chs=250x250&chl=<%= u "otpauth://totp/#{u CASino.config.frontend[:sso_name] + ': ' + @two_factor_authenticator.user.username}?secret=#{@two_factor_authenticator.secret}" %>" height="250" width="250"><br /> </div> <p id="secret"> <%= t('two_factor_authenticators.secret') %>: <%= @two_factor_authenticator.secret %> </p> </div> <div class="form"> <%= form_tag(two_factor_authenticators_path, method: :post, id: 'two_factor_authenticators-form') do %> <%= hidden_field_tag :id, @two_factor_authenticator.id %> <%= label_tag :code, t('two_factor_authenticators.code') %> - <%= text_field_tag :otp, nil, maxlength: 6 %> + <%= text_field_tag :otp, nil, maxlength: 6, autofocus:true %> <%= link_to t('two_factor_authenticators.cancel'), sessions_path, :class => 'secondary button' %> <%= button_tag t('two_factor_authenticators.submit'), :class => 'button' %> <% end %> </div> </div>