Skip to content

Commit d964b25

Browse files
dpritchettradar
authored andcommitted
Removed .anonymous? check that is unneeded in Spree 2.1 login
Fixes #118
1 parent 357d58f commit d964b25

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

app/views/spree/shared/_social.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="social-signin-links">
22
<% if (!spree_current_user || !spree_current_user.user_authentications) && Spree::AuthenticationMethod.active_authentication_methods? %>
3-
<h2><%= Spree.t(:sign_in_through_one_of_these_services) %>:</h2>
3+
<h2><%= Spree.t(:sign_in_through_one_of_these_services) %></h2>
44
<% end %>
55

66
<% Spree::AuthenticationMethod.available_for(@spree_user).each do |method| %>

app/views/spree/users/_social.html.erb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
<% if Spree::AuthenticationMethod.active_authentication_methods? %>
22
<% @body_id = 'login' %>
33
<div id="existing-customer">
4-
<table>
5-
<tr>
6-
<% if spree_current_user.anonymous? %>
7-
<%= render :partial => 'spree/shared/social_registrations', :locals => {:user => spree_current_user, :omniauth => @omniauth} %>
8-
<% end %>
9-
</tr>
10-
</table>
11-
124
<% if spree_current_user.user_authentications %>
135
<% unless spree_current_user.user_authentications.empty? %>
146
<p><strong><%= Spree.t(:you_have_signed_in_with_these_services) %>:</strong></p>

0 commit comments

Comments
 (0)