ibrain-auth 0.3.18 → 0.3.20
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: 75d947397dac2270ffc50a5b0d2b3bfaa9aa5c2b474d117e23f8d697bb3ea905
|
4
|
+
data.tar.gz: c254adca3fa5cefb933fdc3bfd6ad498c9fbdf78137b4dd55cf508a9476e40b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab74c7e5adfd288049f970d8a13bfb87d9c7ff9597f5a4c4420b050925d577cd96dc910ad614e83d1cad7f5b8038f4e84397f00072c87ffb0446bdb84648be97
|
7
|
+
data.tar.gz: e9d2351003d081b8c3d14794fe62fbf0813a1b2c0d5d973a4f4ef143e979749cb1dfe213eaa8a2abad7f02dc79893e766fae4d226e2c5726e95d25a4f0388207
|
@@ -24,7 +24,7 @@ module Ibrain::Mutations
|
|
24
24
|
raise ActionController::InvalidAuthenticityToken, I18n.t('ibrain.errors.account.is_deactivated')
|
25
25
|
end
|
26
26
|
|
27
|
-
warden.set_user(current_user)
|
27
|
+
# warden.set_user(current_user)
|
28
28
|
current_user.jwt_token, jti = auth_headers(request, auth_resource)
|
29
29
|
current_user.jti = jti
|
30
30
|
current_user.save!
|
@@ -20,7 +20,7 @@ module Ibrain::Mutations
|
|
20
20
|
raise ActionController::InvalidAuthenticityToken, I18n.t('ibrain.errors.account.is_deactivated')
|
21
21
|
end
|
22
22
|
|
23
|
-
warden.set_user(current_user)
|
23
|
+
# warden.set_user(current_user)
|
24
24
|
current_user.jwt_token, jti = auth_headers(request, auth_resource)
|
25
25
|
current_user.jti = jti
|
26
26
|
current_user.save!
|
@@ -308,4 +308,7 @@ Devise.setup do |config|
|
|
308
308
|
# When set to false, does not sign a user in automatically after their password is
|
309
309
|
# changed. Defaults to true, so a user is signed in automatically after changing a password.
|
310
310
|
# config.sign_in_after_change_password = true
|
311
|
+
|
312
|
+
config.remember_for = 2.weeks
|
313
|
+
config.timeout_in = 2.weeks
|
311
314
|
end
|
data/lib/ibrain/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibrain-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tai Nguyen Van
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|