strongmind-auth 1.1.116 → 1.1.118

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: 12b89250b4046f4b8d313dc3fcf89eaafb78088d5eba42480524dbffc2c8dee1
4
- data.tar.gz: cc2d78807e378232a159a9815cfc24733fd5add0f801d0b23071be363b72f3d0
3
+ metadata.gz: 54012245095295e150196fc80e2ad10c7a302b2ccf90481b0f9d29045891ad79
4
+ data.tar.gz: 9c960c366e9d77d1dd0f7bc1ec65bb7a5033a64708a9ee9bf20416289d7570c0
5
5
  SHA512:
6
- metadata.gz: 9ec4660214b1051cf1332e8c06ce5b5bb396e3bdabd0b76f14ca3b8c69cc98815718dd318f499bf114a402995f5d34fab3cf283cdee35697382f17b18bef73bc
7
- data.tar.gz: 347d70943b936b9bc0999834db248284e4dedc3584de38d2ae47cc08cb6a1859dc0b8b7134dccb2c185800158cc50f42a7fb0e58b84b6553faf37ef23ede3865
6
+ metadata.gz: 0a48379813bce8d02c83994b36cb3e3c797f23a40ccbf873b5a02f12de69b120ba895381c39694340a795093dae9e2d7fd4379bc12edc2a460227e34851b5028
7
+ data.tar.gz: '085d8271e0aac7b174bf8f97fca85bc6657bc05841d9e4da3811805d2400ce752e2365a98fb0c64275f32377faedaa6e45aaff9d6479c7e7af312a11fd9099e8'
@@ -23,9 +23,13 @@ module Users
23
23
  payload, _header = JWT.decode(params[:logout_token], nil, false)
24
24
  user_identity = payload['sub']
25
25
  user = User.find_by(uid: user_identity)
26
- user.invalidate_all_sessions!
27
- invalidate_navbar_cache(user)
28
- render json: {}, status: :ok, headers:
26
+ if user
27
+ user.invalidate_all_sessions!
28
+ invalidate_navbar_cache(user)
29
+ render json: {}, status: :ok, headers:
30
+ else
31
+ render json: {}, status: :bad_request, headers:
32
+ end
29
33
  else
30
34
  render json: {}, status: :bad_request, headers:
31
35
  end
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.1.116"
3
+ VERSION = "1.1.118"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.116
4
+ version: 1.1.118
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Belding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-19 00:00:00.000000000 Z
11
+ date: 2024-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails