<% if @organization %> <% content_for :title do %><%= @organization.name %><% end %> <% end %> <% content_for :js do %> <%= javascript_include_tag 'common', 'common_vendor', 'sessions' %> <% end %>
<%= render :partial => 'shared/logo', locals: { organization: @organization } %>
<% if @mfa.needs_setup? %>

<%= @mfa.shared_secret %>

Use Google Authenticator app to scan the QR code.

If you have any problem with the QR code, please
<%= link_to 'try with a manual code', '#', class: 'js-sharedSecret-link' %>

If you have any problem, you can scan the QR code.
<%= link_to 'Try with the QR code', '#', class: 'js-sharedSecret-link' %>

<% end %>
<%= form_tag CartoDB.path(self, 'multifactor_authentication_verify_code'), class: "js-Loading-form" do %> <%= hidden_field_tag 'user_id', @user.id %> <%= hidden_field_tag 'email', @user.username %> <% if @flash_login_error %>

<%= raw @flash_login_error %>

<% end %>
<%= text_field_tag :code, "", :title => "Verification code", placeholder: "Verification code", class: "js-verification CDB-Size-medium #{@organization.present? ? 'Sessions-input' : 'Sessions-navy-input'} topBorderRadius" %> <% if @login_error %>
!
<% end %>

<% end %>
<% if @mfa.needs_setup? %> <%= form_tag CartoDB.path(self, 'multifactor_authentication_verify_code'), class: "js-Loading-form" do %> <%= hidden_field_tag 'user_id', @user.id %> <%= hidden_field_tag 'email', @user.username %> <%= hidden_field_tag 'skip', true %> <% end %> <% end %>