quo_vadis 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -15
- data/README.md +1 -1
- data/app/controllers/quo_vadis/sessions_controller.rb +2 -2
- data/lib/quo_vadis/controller.rb +7 -1
- data/lib/quo_vadis/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5f77cea22311c350e1a0671c147db092e3e6c46164a468bff88904eb5fdb742
|
4
|
+
data.tar.gz: 03f0d04ea03e4e84b45d83fb494959a02f0483b5fd145ff550200fdbb6639ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b96e1e5398ded302e9efb69c6e268307606535fc63346acc4faf0443098eb500c97daa107be2ccced4151078c90aac9917a72e037023aeea7cf460a7c706dde8
|
7
|
+
data.tar.gz: 6de70ddbe36d8c5334d1a6ab95da333ab59d28a98a0c1a57ca1c47e1375a156df5c689fbc66f90e70ea44d3e46e2a9af3ad4b4b8a7d8e86fd6ed27e2055ab5e4
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,16 @@
|
|
4
4
|
## HEAD
|
5
5
|
|
6
6
|
|
7
|
+
## 2.2.2 (30 April 2024)
|
8
|
+
|
9
|
+
* Do not update last activity time for ActiveStorage (#23).
|
10
|
+
* Fix login success-flash to not be reset (#37).
|
11
|
+
* Add issue numbers to changelog entries.
|
12
|
+
|
13
|
+
|
7
14
|
## 2.2.1 (1 August 2023)
|
8
15
|
|
9
|
-
* Do not clear application session data on logout.
|
16
|
+
* Do not clear application session data on logout (#34).
|
10
17
|
* Use 'email' type for email input fields.
|
11
18
|
* Document how to log out.
|
12
19
|
|
@@ -14,10 +21,10 @@
|
|
14
21
|
## 2.2.0 (17 April 2023)
|
15
22
|
|
16
23
|
* Improve the readme with internal links and more section headings.
|
17
|
-
* Rename `password_reset_token_lifetime` to `password_reset_otp_lifetime
|
18
|
-
* Use OTP instead of link for password reset.
|
19
|
-
* Rename `account_confirmation_token_lifetime` to `account_confirmation_otp_lifetime
|
20
|
-
* Use OTP instead of link for account confirmation.
|
24
|
+
* Rename `password_reset_token_lifetime` to `password_reset_otp_lifetime` (#28).
|
25
|
+
* Use OTP instead of link for password reset (#28).
|
26
|
+
* Rename `account_confirmation_token_lifetime` to `account_confirmation_otp_lifetime` (#28).
|
27
|
+
* Use OTP instead of link for account confirmation (#28).
|
21
28
|
|
22
29
|
|
23
30
|
## 2.1.11 (14 September 2022)
|
@@ -27,18 +34,18 @@
|
|
27
34
|
|
28
35
|
## 2.1.10 (14 September 2022)
|
29
36
|
|
30
|
-
* Enable configuration of mailer superclass.
|
37
|
+
* Enable configuration of mailer superclass (#30).
|
31
38
|
|
32
39
|
|
33
40
|
## 2.1.9 (13 September 2022)
|
34
41
|
|
35
|
-
* Enable code to be run after sign up.
|
42
|
+
* Enable code to be run after sign up (#29).
|
36
43
|
|
37
44
|
|
38
45
|
## 2.1.8 (18 June 2022)
|
39
46
|
|
40
|
-
* Extract convenience method for has authentication account.
|
41
|
-
* Only authenticating models react to email change.
|
47
|
+
* Extract convenience method for has authentication account (#26).
|
48
|
+
* Only authenticating models react to email change (#26).
|
42
49
|
|
43
50
|
|
44
51
|
## 2.1.7 (30 May 2022)
|
@@ -54,7 +61,7 @@
|
|
54
61
|
|
55
62
|
## 2.1.5 (27 May 2022)
|
56
63
|
|
57
|
-
* Order sessions list and display more information.
|
64
|
+
* Order sessions list and display more information (#25).
|
58
65
|
* Set status 303 See Other on destroy redirects.
|
59
66
|
* Streamline bundler instructions.
|
60
67
|
|
@@ -66,7 +73,7 @@
|
|
66
73
|
|
67
74
|
## 2.1.3 (30 September 2021)
|
68
75
|
|
69
|
-
* Pass IP and timestamp as parameters to mailer.
|
76
|
+
* Pass IP and timestamp as parameters to mailer (#24).
|
70
77
|
|
71
78
|
|
72
79
|
## 2.1.2 (30 September 2021)
|
@@ -78,8 +85,8 @@
|
|
78
85
|
|
79
86
|
* Remove unnecessary route names.
|
80
87
|
* Add user revocation.
|
81
|
-
* Ensure password is only updated via #change or #reset.
|
82
|
-
* Move views into gem's app/views/ directory.
|
88
|
+
* Ensure password is only updated via #change or #reset (#15).
|
89
|
+
* Move views into gem's app/views/ directory (#22).
|
83
90
|
|
84
91
|
|
85
92
|
## 2.1.0 (25 June 2021)
|
@@ -97,8 +104,8 @@
|
|
97
104
|
|
98
105
|
## 2.0.2 (24 May 2021)
|
99
106
|
|
100
|
-
* Account confirmation: enable updating of email address.
|
101
|
-
* Account confirmation: enable direct resending of email.
|
107
|
+
* Account confirmation: enable updating of email address (#21).
|
108
|
+
* Account confirmation: enable direct resending of email (#21).
|
102
109
|
* Log unknown identifier in metadata.
|
103
110
|
|
104
111
|
|
data/README.md
CHANGED
@@ -248,7 +248,7 @@ button_to 'Log out', quo_vadis.logout_path, method: :delete
|
|
248
248
|
|
249
249
|
Note you are responsible for removing any application session data you want removed. To do so, subclass `QuoVadis::SessionsController` and override the `destroy` method:
|
250
250
|
|
251
|
-
|
251
|
+
```ruby
|
252
252
|
# app/controllers/custom_sessions_controller.rb
|
253
253
|
class CustomSessionsController < QuoVadis::SessionsController
|
254
254
|
def destroy
|
@@ -39,10 +39,10 @@ module QuoVadis
|
|
39
39
|
# params[:remember] == 1 => use QuoVadis.session_lifetime
|
40
40
|
browser_session = params[:remember] == '0'
|
41
41
|
|
42
|
-
flash[:notice] = QuoVadis.translate 'flash.login.success'
|
43
|
-
|
44
42
|
login account.model, browser_session
|
45
43
|
|
44
|
+
flash[:notice] = QuoVadis.translate 'flash.login.success'
|
45
|
+
|
46
46
|
redirect_to qv.path_after_authentication
|
47
47
|
end
|
48
48
|
|
data/lib/quo_vadis/controller.rb
CHANGED
@@ -11,7 +11,13 @@ module QuoVadis
|
|
11
11
|
# Remember the last activity time so we can timeout idle sessions.
|
12
12
|
# This has to be done after that timestamp is checked (in `#authenticated_model`)
|
13
13
|
# otherwise sessions could never look idle.
|
14
|
-
|
14
|
+
#
|
15
|
+
# Ignores ActiveStorage requests.
|
16
|
+
base.after_action { |controller|
|
17
|
+
if !defined?(::ActiveStorage) || !controller.class.module_parents.include?(::ActiveStorage)
|
18
|
+
controller.qv.touch_session_last_seen_at
|
19
|
+
end
|
20
|
+
}
|
15
21
|
end
|
16
22
|
|
17
23
|
|
data/lib/quo_vadis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quo_vadis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Stewart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
|
-
rubygems_version: 3.
|
222
|
+
rubygems_version: 3.5.3
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: Multifactor authentication for Rails 6 and 7.
|