Sha256: aa20a83aecae140058dfae25c00d5ba27203aeb8d68eca7cb957253a683fbe85

Contents?: true

Size: 1011 Bytes

Versions: 1

Compression:

Stored size: 1011 Bytes

Contents

<% content_for :meta_title, 'Login with your email' %>
<% content_for :meta_description, "We need your email address to initiate the login or account creation procedure." %>

<% unless current_user # most folks coming to this page should not be logged in %>

  <h1 id="login-header">Login</h1>

  <%= simple_form_for User.new, url: parse_email_path, html: { id: 'email-input-form' }, remote: true, method: 'post' do |f| %>
    <%= f.error_notification %>

    <%= f.input :email, autofocus: true, label: 'Please enter your email address' %>
    <br />
    <%= f.button :submit, 'proceed', :class => 'btn btn-primary' %>
  <% end %>

<% else # the user is already logged in %>

  <h1>You are already logged in</h1>
  <p>This is the login page but it appears that you are already logged in with this address: <strong><%= current_user.email %></strong></p>

  <p><%= link_to 'go to home page', root_path, class: 'btn btn-primary' %><%= link_to 'logout', disconnect_path, class: 'btn btn-default' %></p>

<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tkh_authentication-0.9.8 app/views/reception/email_input.html.erb