panda_pal 5.0.0.beta.2 → 5.0.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/panda_pal/helpers/controller_helper.rb +2 -2
- data/lib/panda_pal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f40ed131f1e4a21e4b2f804bddb0df1500b7594fb7ddf07e5f8fca3bbe02a7c6
|
4
|
+
data.tar.gz: e27d2f357d57b7dc72952acf7a3d345b39614a5a617a0888737046abbf3f2bae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b6dbbcf85c11363e459916df1f0569f9c905ac473d852681bb83e76ec00baa350c531150dc59760c5d0fdd498bcf2c50862f3dbfb5e3d5f0039624aa74d088
|
7
|
+
data.tar.gz: de4c5fd317349625e49e826e622f91b245464f99b1301fe42fbb5ff0a2b8809e4e59f7babe13f0b73cc487db92440d9451d722b784f94d590b58b83ec19d8d7c
|
@@ -130,7 +130,7 @@ module PandaPal::Helpers::ControllerHelper
|
|
130
130
|
|
131
131
|
def session_key
|
132
132
|
if params[:encrypted_session_key]
|
133
|
-
crypt = ActiveSupport::MessageEncryptor.new(Rails.application.
|
133
|
+
crypt = ActiveSupport::MessageEncryptor.new(Rails.application.secret_key_base[0..31])
|
134
134
|
return crypt.decrypt_and_verify(params[:encrypted_session_key])
|
135
135
|
end
|
136
136
|
params[:session_key] || session_key_header || flash[:session_key] || session[:session_key]
|
@@ -167,7 +167,7 @@ module PandaPal::Helpers::ControllerHelper
|
|
167
167
|
end
|
168
168
|
|
169
169
|
def redirect_production_mode(location, params)
|
170
|
-
crypt = ActiveSupport::MessageEncryptor.new(Rails.application.
|
170
|
+
crypt = ActiveSupport::MessageEncryptor.new(Rails.application.secret_key_base[0..31])
|
171
171
|
encrypted_data = crypt.encrypt_and_sign(current_session.session_key)
|
172
172
|
redirect_to send(location, {
|
173
173
|
encrypted_session_key: encrypted_data,
|
data/lib/panda_pal/version.rb
CHANGED