Eliminates registering_with_oauth attr_accessor ELIMINATE Conflicts: app/views/users/registrations/finish_signup.html.erb improves devise confirmation message improves devise omniauth confirmation message improves devise omniauth confirmation message do not use nils on finish_signup fields Fixes auth specs after changing the i18n
20 lines
737 B
Plaintext
20 lines
737 B
Plaintext
<h2><%= t('omniauth.finish_signup.title') %></h2>
|
|
|
|
<%= form_for current_user, as: :user, url: do_finish_signup_path, html: { role: 'form'} do |f| %>
|
|
<%= render 'shared/errors', resource: current_user %>
|
|
|
|
<% if current_user.errors.include? :username %>
|
|
<%= f.text_field :username, placeholder: t("devise_views.users.registrations.new.username_label") %>
|
|
<% else %>
|
|
<%= f.hidden_field :username %>
|
|
<% end %>
|
|
|
|
<% if current_user.errors.include? :email %>
|
|
<%= f.email_field :email, placeholder: t("devise_views.users.registrations.new.email_label") %>
|
|
<% else %>
|
|
<%= f.hidden_field :email %>
|
|
<% end %>
|
|
|
|
<%= f.submit t("devise_views.users.registrations.new.submit"), class: 'button radius expand' %>
|
|
<% end %>
|