Playing with OmniAuth

However OmniAuth is mainly used for authorization. So let's try a more
lightweight approach with just OpenID.
This commit is contained in:
Christoph Haas 2017-04-15 23:08:25 +02:00
parent 8d15711c0f
commit 898dd81c6b
15 changed files with 219 additions and 21 deletions

View file

@ -0,0 +1,16 @@
<h2>Resend unlock instructions</h2>
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
<%= devise_error_messages! %>
<div class="field">
<%= f.label :email %><br />
<%= f.email_field :email, autofocus: true %>
</div>
<div class="actions">
<%= f.submit "Resend unlock instructions" %>
</div>
<% end %>
<%= render "devise/shared/links" %>