h2 Sign in

= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
  .field
    = f.label :email
    = f.email_field :email, autofocus: true

  .field
    = f.label :password
    = f.password_field :password, autocomplete: "off"

  div
    = f.submit "Sign in"


h2 Sign in

= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
  .field
    = f.label :user_name
    = f.text_field :user_name, autofocus: true

  .field
    = f.label :password
    = f.password_field :password, autocomplete: "off"

  div
    = f.submit "Sign in"


Update new session template with user_name
Update new session template with user_name

Klepsz/challenge_app,Klepsz/challenge_app