credible 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/warden.rb +2 -1
- data/lib/credible/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e04943e3c6a99a996da418ebbd9755ce9ae95a2f84787d7cd4252e04623aa85f
|
4
|
+
data.tar.gz: e4bdff3bda7cc60010075a4d4f508e0aea52b9952701b7e074efa85249891009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3adbff0a4748239eead7ca91f8e43bf3d712ef62b4adc03688504849bd95f7a9d76ccf2ef89abc015007e8141a6ef3d40607e808f1a07f66871b8fdb7d7883b5
|
7
|
+
data.tar.gz: 188c025df651ef0e0996bac64a393b406244ee5bae3c2115083d8a1cb16345b2fa3a669b5ea7295c3232f5dee25f272c43ed4a4549ecfba5d904ac5651fd63fb
|
@@ -33,7 +33,8 @@ Warden::Strategies.add(:jwt) do
|
|
33
33
|
fail!('Could not authenticate')
|
34
34
|
end
|
35
35
|
|
36
|
-
|
36
|
+
user = ::User.find(token[0]['data']['user_id'])
|
37
|
+
session = ::Session.new(user: user)
|
37
38
|
success!(session)
|
38
39
|
rescue # ActiveRecord::RecordNotFound
|
39
40
|
fail!('Could not authenticate')
|
data/lib/credible/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom Bruce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|