implement openID authentication

This commit is contained in:
Stella Rouzi 2014-06-18 16:58:30 +03:00
parent 37e026a9fb
commit 600adde6ba
23 changed files with 408 additions and 14 deletions

View file

@ -15,6 +15,18 @@
%br
%br
= render :partial => 'devise/registrations/volunteerperson', :locals => {:p => p}
= f.inputs :name => 'OpenID' do
%h4
Currently using the following openIDs:
- @openids.each do |openid|
= openid.provider
= openid.email
%br
%h4
To add an openID to your account using a different email address, sign in with your
openID while logged in to OSEM
= render 'devise/shared/openid'
= f.inputs :name => "Account" do
= f.input :email, :required => false
= f.input :password, :hint => "(Leave blank if you don't want to change it)", :input_html => {:autocomplete => "off"}

View file

@ -3,13 +3,17 @@
%h1.text-center Sign Up
.col-md-5.col-md-offset-1
.well
= semantic_form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f|
= semantic_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
= f.input :email
= f.input :password
= f.input :password_confirmation
= f.action :submit, :as => :button, :label => "Sign Up", :button_html => {:class => "btn btn-primary"}
.col-md-3.col-md-offset-2
= f.action :submit, as: :button, label: 'Sign Up', button_html: {class: 'btn btn-primary'}
%br
%br
%h4 Already have an account?
= render 'devise/shared/links'
.col-md-4
.well
%h4
Already have an account?
= render "devise/shared/links"
%h4 Or use your openID
= render 'devise/shared/openid'