rodauth-select-account 0.1.3 → 0.1.4

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: 54558f068bac6c32c070a056d1b4ffbc6b86878fbbedd2b5b4561b97233a169e
4
- data.tar.gz: ae04cf2fedd5df579a98969ad6ca2e8154e78a2451ebabf244fc0015a34c3ae9
3
+ metadata.gz: 05f7798e665c9094487ad294b51c0f248477c5141eda29e779c97f1b97e20da0
4
+ data.tar.gz: ad8d11bb6eaabbe37560cd1fa986cc8f82194f421a7004999d930d4237321fb0
5
5
  SHA512:
6
- metadata.gz: 82210732ab64e6ce8c418767daebd2e69833f224c068c594725c12f171eed0871f955079ebcfa6c93a35f7eeee7e49e779d293ad4fa6b45f66b0d6acf90bdd90
7
- data.tar.gz: 14d2ec75e8f69e4e160e016d6b50a95f4697e05739e4edf9f74bcd5406dc3c3f274592afc6c036390a3596415116bd15490b358cd92a87842ea0ce98b58ffed7
6
+ metadata.gz: fc463cbc75d2be5c303d98b903459dd9cf4537d64ceba01626327342b3a1a4913da0ff1cc09ba7f3b6d103ebbce9d0ace1b1c742c078e619ee14aae23d242a9c
7
+ data.tar.gz: 1dc2fc5d70455e4426ec90ca30603605af8c061707c2a977c313264ce984dc4ce4f78535b2973c93f36a6570ef0d080333dfa0203ead39fc272d3e084d8fb0a3
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.1.4
6
+
7
+ * Fixes compatibility with security-focused changes introduced in rodauth 2.46.
8
+
5
9
  ## 0.1.3
6
10
 
7
11
  * allow setting `require_selected_account_cookie_interval` and `accounts_cookie_interval` to `nil` in order to set the managed cookies as "Session Cookies" (i.e. getting wiped out on browser close).
@@ -37,6 +37,13 @@ module Rodauth
37
37
  auth_value_method :add_account_required_error_status, 403
38
38
  translatable_method :no_account_message, "could not select account"
39
39
 
40
+ if respond_to?(:uses_instance_variables)
41
+ uses_instance_variables(
42
+ :@accounts_in_session,
43
+ :@valid_login_entered
44
+ )
45
+ end
46
+
40
47
  def accounts_in_session
41
48
  @accounts_in_session ||= _get_accounts_in_session
42
49
  end
@@ -244,7 +251,7 @@ module Rodauth
244
251
 
245
252
  catch_error do
246
253
  # this instruction will load the new account
247
- unless account_from_login(param(login_param))
254
+ unless (@account = _account_from_login(param(login_param)))
248
255
  throw_error_status(no_matching_login_error_status, login_param, no_matching_login_message)
249
256
  end
250
257
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rodauth
4
4
  module SelectAccount
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodauth-select-account
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rodauth
@@ -30,9 +29,9 @@ email:
30
29
  executables: []
31
30
  extensions: []
32
31
  extra_rdoc_files:
32
+ - CHANGELOG.md
33
33
  - LICENSE.txt
34
34
  - README.md
35
- - CHANGELOG.md
36
35
  - doc/select_account.rdoc
37
36
  files:
38
37
  - CHANGELOG.md
@@ -50,8 +49,10 @@ homepage: https://gitlab.com/os85/rodauth-select-account
50
49
  licenses:
51
50
  - Apache 2.0
52
51
  metadata:
52
+ homepage_uri: https://gitlab.com/os85/rodauth-select-account
53
+ source_code_uri: https://gitlab.com/os85/rodauth-select-account
54
+ changelog_uri: https://gitlab.com/os85/rodauth-select-account/-/blob/master/CHANGELOG.md
53
55
  rubygems_mfa_required: 'true'
54
- post_install_message:
55
56
  rdoc_options: []
56
57
  require_paths:
57
58
  - lib
@@ -66,8 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
67
  - !ruby/object:Gem::Version
67
68
  version: '0'
68
69
  requirements: []
69
- rubygems_version: 3.5.3
70
- signing_key:
70
+ rubygems_version: 4.0.16
71
71
  specification_version: 4
72
72
  summary: Multiple authenticated accounts per session in rodauth.
73
73
  test_files: []