Log in

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<%= f.label :username %>
<%= f.text_field :username, autofocus: true %>
<% if APP_CONFIG['domains'].count > 1 %>
<%= f.label :domain %>
<%= f.select :domain, APP_CONFIG['domains'].collect{|d,ou| [d]}, autofocus: true %>
<% end %>
<%= f.label :password %>
<%= f.password_field :password, autocomplete: "off" %>
<% if devise_mapping.rememberable? -%>
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
<% end -%>
<%= f.submit "Log in" %>
<% end %> <%= render "devise/shared/links" %>