spree_auth 0.70.0.rc2 → 0.70.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree_auth might be problematic. Click here for more details.
- data/LICENSE +1 -1
- data/app/views/checkout/registration.html.erb +6 -6
- data/app/views/layouts/admin/_login_nav.html.erb +5 -5
- data/app/views/shared/_login.html.erb +8 -8
- data/app/views/shared/_login_bar.html.erb +3 -3
- data/app/views/shared/_user_form.html.erb +4 -4
- data/app/views/user_passwords/edit.html.erb +2 -2
- data/app/views/user_passwords/new.html.erb +2 -2
- data/app/views/user_registrations/new.html.erb +5 -7
- data/app/views/user_sessions/authorization_failure.html.erb +2 -2
- data/app/views/user_sessions/new.html.erb +2 -2
- data/app/views/users/edit.html.erb +4 -4
- data/app/views/users/show.html.erb +11 -11
- metadata +10 -16
data/LICENSE
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
<%= render
|
2
|
-
<h2><%= t(
|
1
|
+
<%= render 'shared/error_messages', :target => @user %>
|
2
|
+
<h2><%= t(:registration)%></h2>
|
3
3
|
<div id="registration">
|
4
4
|
<div id="account">
|
5
5
|
<%= render :file => 'user_sessions/new' %>
|
6
6
|
</div>
|
7
7
|
<% if Spree::Config[:allow_guest_checkout] %>
|
8
8
|
<div id="guest_checkout">
|
9
|
-
<%= render
|
9
|
+
<%= render 'shared/error_messages', :target => @order %>
|
10
10
|
<h2><%= t(:guest_user_account) %></h2>
|
11
|
-
<%= form_for @order, :url => update_checkout_registration_path, :html => { :method => :put, :id =>
|
11
|
+
<%= form_for @order, :url => update_checkout_registration_path, :html => { :method => :put, :id => 'checkout_form_registration'} do |f| %>
|
12
12
|
<p>
|
13
|
-
<%= f.label :email, t(
|
13
|
+
<%= f.label :email, t(:email) %><br />
|
14
14
|
<%= f.text_field :email, :class => 'title' %>
|
15
15
|
</p>
|
16
|
-
<p><%=
|
16
|
+
<p><%= f.submit t(:continue), :class => 'button primary' %></p>
|
17
17
|
<% end %>
|
18
18
|
</div>
|
19
19
|
<% end %>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<% if
|
1
|
+
<% if current_user %>
|
2
2
|
<ul id="login-nav">
|
3
|
-
<li><%= t(
|
4
|
-
<li><%= link_to t(
|
5
|
-
<li><%= link_to t(
|
6
|
-
<li><%= link_to t(
|
3
|
+
<li><%= t(:logged_in_as) %>: <%= current_user.email %></li>
|
4
|
+
<li><%= link_to t(:account), edit_user_path(current_user) %></li>
|
5
|
+
<li><%= link_to t(:logout), destroy_user_session_path %></li>
|
6
|
+
<li><%= link_to t(:store), products_path %></li>
|
7
7
|
</ul>
|
8
8
|
<% end %>
|
@@ -1,20 +1,20 @@
|
|
1
|
-
<%= form_for
|
2
|
-
<div id=
|
1
|
+
<%= form_for :user, :url => user_session_path do |f| %>
|
2
|
+
<div id="password-credentials">
|
3
3
|
<p>
|
4
|
-
<%= f.label
|
5
|
-
<%= f.text_field
|
4
|
+
<%= f.label :email, t(:email) %><br />
|
5
|
+
<%= f.text_field :email, :class => 'title' %>
|
6
6
|
</p>
|
7
7
|
<p>
|
8
|
-
<%= f.label :password, t(
|
9
|
-
<%= f.password_field
|
8
|
+
<%= f.label :password, t(:password) %><br />
|
9
|
+
<%= f.password_field :password, :class => 'title' %>
|
10
10
|
</p>
|
11
11
|
</div>
|
12
12
|
<p>
|
13
13
|
<label>
|
14
14
|
<%= f.check_box :remember_me %>
|
15
|
-
<%= f.label :remember_me, t(
|
15
|
+
<%= f.label :remember_me, t(:remember_me) %>
|
16
16
|
</label>
|
17
17
|
</p>
|
18
18
|
|
19
|
-
<p><%=
|
19
|
+
<p><%= f.submit t(:log_in), :class => 'button primary'%></p>
|
20
20
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% if current_user %>
|
2
|
-
<li><%= link_to t(
|
3
|
-
<li><%= link_to t(
|
2
|
+
<li><%= link_to t(:my_account), account_path %></li>
|
3
|
+
<li><%= link_to t(:logout), destroy_user_session_path %></li>
|
4
4
|
<% else %>
|
5
|
-
<li><%= link_to t(
|
5
|
+
<li><%= link_to t(:log_in), login_path %></li>
|
6
6
|
<% end %>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<p>
|
2
|
-
<%= f.label :email, t(
|
3
|
-
<%= f.text_field :email, :class => 'title'
|
2
|
+
<%= f.label :email, t(:email) %><br />
|
3
|
+
<%= f.text_field :email, :class => 'title' %>
|
4
4
|
</p>
|
5
5
|
<div id="password-credentials">
|
6
6
|
<p>
|
7
|
-
<%= f.label :password, t(
|
8
|
-
<%= f.password_field :password, :class => 'title'
|
7
|
+
<%= f.label :password, t(:password) %><br />
|
8
|
+
<%= f.password_field :password, :class => 'title' %>
|
9
9
|
</p>
|
10
10
|
|
11
11
|
<p>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render 'shared/error_messages', :target => @user %>
|
2
2
|
<h1><%= t(:change_my_password) %></h1>
|
3
3
|
|
4
4
|
<%= form_for @user, :url => user_password_path, :html => {:method => :put} do |f| %>
|
@@ -11,5 +11,5 @@
|
|
11
11
|
<%= f.password_field :password_confirmation %><br />
|
12
12
|
</p>
|
13
13
|
<%= f.hidden_field :reset_password_token %>
|
14
|
-
<%= f.submit t(
|
14
|
+
<%= f.submit t(:update_password) %>
|
15
15
|
<% end %>
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
<%= form_for User.new, :as => :user, :url => user_password_path do |f| %>
|
6
6
|
<p>
|
7
|
-
|
7
|
+
<%= f.label :email, t(:email) %>:<br />
|
8
8
|
<%= f.email_field :email %>
|
9
9
|
</p>
|
10
10
|
<p>
|
11
|
-
<%= f.submit t(
|
11
|
+
<%= f.submit t(:reset_password) %>
|
12
12
|
</p>
|
13
13
|
<% end %>
|
@@ -1,21 +1,19 @@
|
|
1
1
|
<% @body_id = 'signup' %>
|
2
2
|
|
3
|
-
<%= render
|
3
|
+
<%= render 'shared/error_messages', :target => @user %>
|
4
4
|
|
5
5
|
<div id="new-customer">
|
6
|
-
<h2><%= t(
|
6
|
+
<h2><%= t(:new_customer) %></h2>
|
7
7
|
|
8
8
|
<div data-hook="signup">
|
9
9
|
|
10
|
-
<%= form_for
|
11
|
-
|
10
|
+
<%= form_for :user, :url => registration_path(@user) do |f| %>
|
12
11
|
<div data-hook="signup_inside_form"%>
|
13
12
|
<%= render 'shared/user_form', :f => f %>
|
14
|
-
<p><%=
|
13
|
+
<p><%= f.submit t(:create), :class => 'button primary' %></p>
|
15
14
|
</div>
|
16
|
-
|
17
15
|
<% end %>
|
18
|
-
<%= t(
|
16
|
+
<%= t(:or) %> <%= link_to t(:login_as_existing), login_path %>
|
19
17
|
|
20
18
|
</div>
|
21
19
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div style="height:50px; padding-top:
|
2
|
-
<strong><%= t(
|
1
|
+
<div style="height:50px; padding-top:20px;">
|
2
|
+
<strong><%= t(:authorization_failure) %></strong>
|
3
3
|
</div>
|
4
4
|
<!-- Add your own custom access denied message here if you like -->
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
<% @body_id = 'login' %>
|
6
6
|
<div id="existing-customer">
|
7
|
-
<h2><%= t(
|
7
|
+
<h2><%= t(:login_as_existing) %></h2>
|
8
8
|
<div data-hook="login">
|
9
9
|
<%= render :partial => 'shared/login' %>
|
10
|
-
<%= t(
|
10
|
+
<%= t(:or) %> <%= link_to t(:create_a_new_account), signup_path %> | <%= link_to t(:forgot_password), new_user_password_path %>
|
11
11
|
</div>
|
12
12
|
</div>
|
13
13
|
<div data-hook="login_extras"></div>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render 'shared/error_messages', :target => @user %>
|
2
2
|
|
3
|
-
<h1><%= t(
|
3
|
+
<h1><%= t(:editing_user) %></h1>
|
4
4
|
|
5
|
-
<%= form_for
|
5
|
+
<%= form_for @user, :html => { :method => :put } do |f| %>
|
6
6
|
<%= render 'shared/user_form', :f => f %>
|
7
7
|
<p>
|
8
|
-
<%=
|
8
|
+
<%= f.submit t(:update) %>
|
9
9
|
</p>
|
10
10
|
<% end %>
|
11
11
|
|
@@ -1,26 +1,26 @@
|
|
1
|
-
<h1><%= t(
|
1
|
+
<h1><%= t(:my_account) %></h1>
|
2
2
|
|
3
3
|
<div data-hook="account_summary">
|
4
4
|
<dl id="user-info">
|
5
|
-
<dt><%= t(
|
5
|
+
<dt><%= t(:email) %></dt>
|
6
6
|
<dd><%= @user.email %></dd>
|
7
7
|
</dl>
|
8
|
-
<p><%= link_to t(
|
8
|
+
<p><%= link_to t(:edit), edit_account_path %></p>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div data-hook="account_my_orders">
|
12
12
|
|
13
|
-
<h2><%= t(
|
13
|
+
<h2><%= t(:my_orders) %></h2>
|
14
14
|
<% if @orders.present? %>
|
15
|
-
<table class="order-summary"
|
15
|
+
<table class="order-summary" style="width:545px;">
|
16
16
|
<thead>
|
17
17
|
<tr>
|
18
|
-
<th><%= t(
|
19
|
-
<th><%= t(
|
20
|
-
<th><%= t(
|
21
|
-
<th><%= t(
|
22
|
-
<th><%= t(
|
23
|
-
<th><%= t(
|
18
|
+
<th><%= t(:order_number) %></th>
|
19
|
+
<th><%= t(:order_date) %></th>
|
20
|
+
<th><%= t(:status) %></th>
|
21
|
+
<th><%= t(:payment_state) %></th>
|
22
|
+
<th><%= t(:shipment_state) %></th>
|
23
|
+
<th><%= t(:total) %></th>
|
24
24
|
</tr>
|
25
25
|
</thead>
|
26
26
|
<tbody>
|
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 263
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 70
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 2
|
12
|
-
version: 0.70.0.rc2
|
10
|
+
version: 0.70.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Sean Schofield
|
@@ -17,7 +15,7 @@ autorequire:
|
|
17
15
|
bindir: bin
|
18
16
|
cert_chain: []
|
19
17
|
|
20
|
-
date: 2011-
|
18
|
+
date: 2011-10-07 00:00:00 Z
|
21
19
|
dependencies:
|
22
20
|
- !ruby/object:Gem::Dependency
|
23
21
|
type: :runtime
|
@@ -27,14 +25,12 @@ dependencies:
|
|
27
25
|
requirements:
|
28
26
|
- - "="
|
29
27
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
28
|
+
hash: 263
|
31
29
|
segments:
|
32
30
|
- 0
|
33
31
|
- 70
|
34
32
|
- 0
|
35
|
-
|
36
|
-
- 2
|
37
|
-
version: 0.70.0.rc2
|
33
|
+
version: 0.70.0
|
38
34
|
version_requirements: *id001
|
39
35
|
name: spree_core
|
40
36
|
- !ruby/object:Gem::Dependency
|
@@ -156,14 +152,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
153
|
none: false
|
158
154
|
requirements:
|
159
|
-
- - "
|
155
|
+
- - ">="
|
160
156
|
- !ruby/object:Gem::Version
|
161
|
-
hash:
|
157
|
+
hash: 3
|
162
158
|
segments:
|
163
|
-
-
|
164
|
-
|
165
|
-
- 1
|
166
|
-
version: 1.3.1
|
159
|
+
- 0
|
160
|
+
version: "0"
|
167
161
|
requirements:
|
168
162
|
- none
|
169
163
|
rubyforge_project: spree_auth
|