spree_auth 1.0.0.rc1 → 1.0.0.rc2
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/controllers/spree/user_passwords_controller.rb +0 -7
- data/app/controllers/spree/user_registrations_controller.rb +0 -5
- data/app/controllers/spree/user_sessions_controller.rb +1 -7
- data/app/views/spree/checkout/registration.html.erb +1 -1
- data/app/views/spree/shared/_login.html.erb +1 -1
- data/app/views/spree/shared/_login_bar.html.erb +1 -1
- data/app/views/spree/user_passwords/edit.html.erb +3 -3
- data/app/views/spree/user_passwords/new.html.erb +1 -1
- data/app/views/spree/users/edit.html.erb +1 -1
- data/db/default/users.rb +2 -2
- data/lib/spree/auth.rb +3 -3
- metadata +40 -81
data/LICENSE
CHANGED
@@ -35,11 +35,4 @@ class Spree::UserPasswordsController < Devise::PasswordsController
|
|
35
35
|
super
|
36
36
|
end
|
37
37
|
|
38
|
-
private
|
39
|
-
|
40
|
-
def associate_user
|
41
|
-
return unless current_user and current_order
|
42
|
-
current_order.associate_user!(current_user)
|
43
|
-
session[:guest_token] = nil
|
44
|
-
end
|
45
38
|
end
|
@@ -55,9 +55,4 @@ class Spree::UserRegistrationsController < Devise::RegistrationsController
|
|
55
55
|
authorize!(:create, resource)
|
56
56
|
end
|
57
57
|
|
58
|
-
def associate_user
|
59
|
-
return unless current_user and current_order
|
60
|
-
current_order.associate_user!(current_user)
|
61
|
-
session[:guest_token] = nil
|
62
|
-
end
|
63
58
|
end
|
@@ -44,13 +44,7 @@ class Spree::UserSessionsController < Devise::SessionsController
|
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|
47
|
-
def associate_user
|
48
|
-
return unless current_user and current_order
|
49
|
-
current_order.associate_user!(current_user)
|
50
|
-
session[:guest_token] = nil
|
51
|
-
end
|
52
|
-
|
53
47
|
def accurate_title
|
54
|
-
t(:
|
48
|
+
t(:login)
|
55
49
|
end
|
56
50
|
end
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<div id="guest_checkout">
|
9
9
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @order } %>
|
10
10
|
<h2><%= t(:guest_user_account) %></h2>
|
11
|
-
<%= form_for @order, :url => spree.update_checkout_registration_path, :
|
11
|
+
<%= form_for @order, :url => spree.update_checkout_registration_path, :method => :put, :html => { :id => 'checkout_form_registration' } do |f| %>
|
12
12
|
<p>
|
13
13
|
<%= f.label :email, t(:email) %><br />
|
14
14
|
<%= f.email_field :email, :class => 'title' %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<%= render :partial => 'spree/shared/error_messages', :locals => { :target => @user } %>
|
2
2
|
<h2><%= t(:change_my_password) %></h2>
|
3
3
|
|
4
|
-
<%= form_for @user, :url => spree.user_password_path, :
|
4
|
+
<%= form_for @user, :url => spree.user_password_path, :method => :put do |f| %>
|
5
5
|
<p>
|
6
|
-
<%= f.label :password %><br />
|
6
|
+
<%= f.label :password, t(:password) %><br />
|
7
7
|
<%= f.password_field :password %><br />
|
8
8
|
</p>
|
9
9
|
<p>
|
10
|
-
<%= f.label :password_confirmation %><br />
|
10
|
+
<%= f.label :password_confirmation, t(:password_confirmation) %><br />
|
11
11
|
<%= f.password_field :password_confirmation %><br />
|
12
12
|
</p>
|
13
13
|
<%= f.hidden_field :reset_password_token %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<h2><%= t(:editing_user) %></h2>
|
4
4
|
|
5
|
-
<%= form_for @user, :url => spree.user_path(@user), :
|
5
|
+
<%= form_for @user, :url => spree.user_path(@user), :method => :put do |f| %>
|
6
6
|
<%= render :partial => 'spree/shared/user_form', :locals => { :f => f } %>
|
7
7
|
<p>
|
8
8
|
<%= f.submit t(:update) %>
|
data/db/default/users.rb
CHANGED
@@ -2,7 +2,7 @@ require 'highline/import'
|
|
2
2
|
|
3
3
|
# see last line where we create an admin if there is none, asking for email and password
|
4
4
|
def prompt_for_admin_password
|
5
|
-
password = ask('Password [spree123]: '
|
5
|
+
password = ask('Password [spree123]: ') do |q|
|
6
6
|
q.echo = false
|
7
7
|
q.validate = /^(|.{5,40})$/
|
8
8
|
q.responses[:not_valid] = 'Invalid password. Must be at least 5 characters long.'
|
@@ -13,7 +13,7 @@ def prompt_for_admin_password
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def prompt_for_admin_email
|
16
|
-
email = ask('Email [spree@example.com]: '
|
16
|
+
email = ask('Email [spree@example.com]: ') do |q|
|
17
17
|
q.echo = true
|
18
18
|
q.whitespace = :strip
|
19
19
|
end
|
data/lib/spree/auth.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_auth
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
prerelease: 6
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
- rc
|
11
|
-
- 1
|
12
|
-
version: 1.0.0.rc1
|
13
6
|
platform: ruby
|
14
|
-
authors:
|
7
|
+
authors:
|
15
8
|
- Sean Schofield
|
16
9
|
autorequire:
|
17
10
|
bindir: bin
|
18
11
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
12
|
+
date: 2012-01-14 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: spree_core
|
16
|
+
requirement: &70296291622140 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
- 0
|
33
|
-
- rc
|
34
|
-
- 1
|
35
|
-
version: 1.0.0.rc1
|
36
|
-
requirement: *id001
|
18
|
+
requirements:
|
19
|
+
- - =
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.0.0.rc2
|
37
22
|
type: :runtime
|
38
23
|
prerelease: false
|
39
|
-
|
40
|
-
- !ruby/object:Gem::Dependency
|
41
|
-
|
24
|
+
version_requirements: *70296291622140
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: devise
|
27
|
+
requirement: &70296291621540 !ruby/object:Gem::Requirement
|
42
28
|
none: false
|
43
|
-
requirements:
|
44
|
-
- -
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 23
|
47
|
-
segments:
|
48
|
-
- 1
|
49
|
-
- 4
|
50
|
-
- 8
|
29
|
+
requirements:
|
30
|
+
- - =
|
31
|
+
- !ruby/object:Gem::Version
|
51
32
|
version: 1.4.8
|
52
|
-
requirement: *id002
|
53
33
|
type: :runtime
|
54
34
|
prerelease: false
|
55
|
-
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
|
35
|
+
version_requirements: *70296291621540
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: cancan
|
38
|
+
requirement: &70296291621000 !ruby/object:Gem::Requirement
|
58
39
|
none: false
|
59
|
-
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
hash: 1
|
63
|
-
segments:
|
64
|
-
- 1
|
65
|
-
- 6
|
66
|
-
- 7
|
40
|
+
requirements:
|
41
|
+
- - =
|
42
|
+
- !ruby/object:Gem::Version
|
67
43
|
version: 1.6.7
|
68
|
-
requirement: *id003
|
69
44
|
type: :runtime
|
70
45
|
prerelease: false
|
71
|
-
|
46
|
+
version_requirements: *70296291621000
|
72
47
|
description: Required dependency for Spree
|
73
|
-
email: sean@
|
48
|
+
email: sean@spreecommerce.com
|
74
49
|
executables: []
|
75
|
-
|
76
50
|
extensions: []
|
77
|
-
|
78
51
|
extra_rdoc_files: []
|
79
|
-
|
80
|
-
files:
|
52
|
+
files:
|
81
53
|
- LICENSE
|
82
54
|
- README.md
|
83
55
|
- app/assets/javascripts/admin/spree_auth.js
|
@@ -138,35 +110,23 @@ files:
|
|
138
110
|
- db/seeds.rb
|
139
111
|
homepage: http://spreecommerce.com
|
140
112
|
licenses: []
|
141
|
-
|
142
113
|
post_install_message:
|
143
114
|
rdoc_options: []
|
144
|
-
|
145
|
-
require_paths:
|
115
|
+
require_paths:
|
146
116
|
- lib
|
147
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
118
|
none: false
|
149
|
-
requirements:
|
150
|
-
- -
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
hash: 57
|
153
|
-
segments:
|
154
|
-
- 1
|
155
|
-
- 8
|
156
|
-
- 7
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
157
122
|
version: 1.8.7
|
158
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
124
|
none: false
|
160
|
-
requirements:
|
161
|
-
- -
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
hash: 25
|
164
|
-
segments:
|
165
|
-
- 1
|
166
|
-
- 3
|
167
|
-
- 1
|
125
|
+
requirements:
|
126
|
+
- - ! '>'
|
127
|
+
- !ruby/object:Gem::Version
|
168
128
|
version: 1.3.1
|
169
|
-
requirements:
|
129
|
+
requirements:
|
170
130
|
- none
|
171
131
|
rubyforge_project:
|
172
132
|
rubygems_version: 1.8.10
|
@@ -174,4 +134,3 @@ signing_key:
|
|
174
134
|
specification_version: 3
|
175
135
|
summary: Provides authentication and authorization services for use with Spree.
|
176
136
|
test_files: []
|
177
|
-
|