solidus_auth_devise 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06a3a3cbf89ea6e5d6f1af9eb7c4e7da1eeba81db889aecfa68f95c128cef565
|
|
4
|
+
data.tar.gz: 521c0aac464ab62f397d6b74a56993353c82aa9aa45c60fd66593c7355bcb36c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4724c75f7ab7954d6a88fe15bd2c5a0e3f11a6578012f55b611f212b169a99f901066951b18d1cee3da7f6be55dd1c2ed4b5f1a291bc7086554457e50789888b
|
|
7
|
+
data.tar.gz: 6f7b20096efca12a434aca4b8567e6c90a15787bfd8368c073628433bdbc7730eea3e200e3720ab6005bf2a92885cfb8c6aa7e53f934dcdcec8e590d517738a1
|
data/app/models/spree/user.rb
CHANGED
|
@@ -57,10 +57,24 @@ class Spree::UserSessionsController < Devise::SessionsController
|
|
|
57
57
|
def success_json
|
|
58
58
|
{
|
|
59
59
|
json: {
|
|
60
|
-
user:
|
|
60
|
+
user: sign_in_user_json,
|
|
61
61
|
ship_address: spree_current_user.ship_address,
|
|
62
62
|
bill_address: spree_current_user.bill_address
|
|
63
63
|
}.to_json
|
|
64
64
|
}
|
|
65
65
|
end
|
|
66
|
+
|
|
67
|
+
def sign_in_user_json
|
|
68
|
+
if (serializer = Spree::Auth::Config.sign_in_user_json)
|
|
69
|
+
serializer.call(spree_current_user)
|
|
70
|
+
else
|
|
71
|
+
Spree.deprecator.warn(<<~MSG)
|
|
72
|
+
The default user JSON payload will change to only include id and email
|
|
73
|
+
in solidus_auth_devise 3.0. Set `Spree::Auth::Config.sign_in_user_json`
|
|
74
|
+
if you want to customize the payload.
|
|
75
|
+
MSG
|
|
76
|
+
|
|
77
|
+
Spree.deprecator.silence { spree_current_user.as_json }
|
|
78
|
+
end
|
|
79
|
+
end
|
|
66
80
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidus_auth_devise
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.6.
|
|
4
|
+
version: 2.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Solidus Team
|
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
265
265
|
- !ruby/object:Gem::Version
|
|
266
266
|
version: '0'
|
|
267
267
|
requirements: []
|
|
268
|
-
rubygems_version: 4.0.
|
|
268
|
+
rubygems_version: 4.0.20
|
|
269
269
|
specification_version: 4
|
|
270
270
|
summary: Provides authentication and authorization services for use with Solidus by
|
|
271
271
|
using Devise and CanCan.
|