spree_auth 0.60.4 → 0.60.5

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.

@@ -27,7 +27,7 @@ class UsersController < Spree::BaseController
27
27
  if params[:user][:password].present?
28
28
  # this logic needed b/c devise wants to log us out after password changes
29
29
  user = User.reset_password_by_token(params[:user])
30
- sign_in(@user, :event => :authentication)
30
+ sign_in(@user, :event => :authentication, :bypass => !Spree::Auth::Config[:signout_after_password_change])
31
31
  end
32
32
  flash.notice = I18n.t("account_updated")
33
33
  redirect_to account_url
@@ -1,3 +1,4 @@
1
1
  class SpreeAuthConfiguration < Configuration
2
2
  preference :registration_step, :boolean, :default => true
3
+ preference :signout_after_password_change, :boolean, :default => true
3
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 231
4
+ hash: 229
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 60
9
- - 4
10
- version: 0.60.4
9
+ - 5
10
+ version: 0.60.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Schofield
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-21 00:00:00 Z
18
+ date: 2012-03-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -23,12 +23,12 @@ dependencies:
23
23
  requirements:
24
24
  - - "="
25
25
  - !ruby/object:Gem::Version
26
- hash: 231
26
+ hash: 229
27
27
  segments:
28
28
  - 0
29
29
  - 60
30
- - 4
31
- version: 0.60.4
30
+ - 5
31
+ version: 0.60.5
32
32
  requirement: *id001
33
33
  type: :runtime
34
34
  prerelease: false