devise_masquerade 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02e2f123857132cfdeaf49b1dbb8cef1dce29175448f862dba6387e72087ebe2
|
4
|
+
data.tar.gz: 451e8c53e1e84d565fd0fcb13439c0f3b75dd27a00fb112e0c2fd8976f67b00b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f3ea1133abf1ae6126ce12e64fb118fa88e2627587f1e29833fb7805bd230cac706d7e4ab1f12848409cca824e670a131f8b4c3bb1e02e00a45337ab8071de0
|
7
|
+
data.tar.gz: a281f8c5bcab7bde06ca043830ed98982e38c7e061a77be364768486caf7a5f10f85b35e5788c6334806a3b98a6010e8f4e1ee170a0baba88d05723429036287
|
data/Gemfile.lock
CHANGED
@@ -137,6 +137,7 @@ class Devise::MasqueradesController < DeviseController
|
|
137
137
|
|
138
138
|
# skip sharing owner id via session
|
139
139
|
Rails.cache.write(skey, resource_gid, expires_in: Devise.masquerade_expires_in)
|
140
|
+
session[skey] = true
|
140
141
|
session[session_key_masquerading_resource_class] = masquerading_resource_class.name
|
141
142
|
session[session_key_masqueraded_resource_class] = masqueraded_resource_class.name
|
142
143
|
end
|
@@ -145,6 +146,7 @@ class Devise::MasqueradesController < DeviseController
|
|
145
146
|
skey = session_key(masqueradable_resource)
|
146
147
|
|
147
148
|
Rails.cache.delete(skey)
|
149
|
+
session.delete(skey)
|
148
150
|
session.delete(session_key_masqueraded_resource_class)
|
149
151
|
session.delete(session_key_masquerading_resource_class)
|
150
152
|
end
|