quo_vadis 2.1.3 → 2.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 +4 -4
- data/README.md +1 -1
- data/lib/quo_vadis/controller.rb +2 -2
- data/lib/quo_vadis/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: c0b470ad4482010d9774287306051d802625c95fa5e20675a12bf4537e71d939
|
|
4
|
+
data.tar.gz: 67574e42473e4c87dc112f7e7ced2104c8df54a8a02e7befcedad6e806d136a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: debe3294db5262b56514b9ece8181464783521f475c4472a43dd4555739cd97fd81bea5fde66e700be8a75ada62ee554d4374aa196bfcb063bc9ecfcd989d1cf
|
|
7
|
+
data.tar.gz: 00f90c64fd56cec727ba364d784de3928e68e5d34eb5fca1fd56382c77289c0d6c5a4be7396687e1e175d5dc66c4473e00ae77b8b6f52c56def2496e0abeab40
|
data/README.md
CHANGED
|
@@ -119,7 +119,7 @@ end
|
|
|
119
119
|
|
|
120
120
|
__`login(model, browser_session = true)`__
|
|
121
121
|
|
|
122
|
-
To log in a user who has authenticated with a password, call `#login(model, browser_session = true)`. For the `browser_session` argument, pass `true` to log in for the duration of the browser session, or `false` to log in for `QuoVadis.session_lifetime` (which could be the browser session anyway).
|
|
122
|
+
To log in a user who has authenticated with a password, call `#login(model, browser_session = true, metadata: {})`. For the `browser_session` argument, optionally pass `true` to log in for the duration of the browser session, or `false` to log in for `QuoVadis.session_lifetime` (which could be the browser session anyway). Any metadata are stored in the log entry for the login.
|
|
123
123
|
|
|
124
124
|
__`request_confirmation(model)`__
|
|
125
125
|
|
data/lib/quo_vadis/controller.rb
CHANGED
|
@@ -36,8 +36,8 @@ module QuoVadis
|
|
|
36
36
|
#
|
|
37
37
|
# browser_session - true: login only for duration of browser session
|
|
38
38
|
# false: login for QuoVadis.session_lifetime (which may be browser session anyway)
|
|
39
|
-
def login(model, browser_session = true)
|
|
40
|
-
qv.log model.qv_account, Log::LOGIN_SUCCESS
|
|
39
|
+
def login(model, browser_session = true, metadata: {})
|
|
40
|
+
qv.log model.qv_account, Log::LOGIN_SUCCESS, metadata
|
|
41
41
|
|
|
42
42
|
qv.prevent_rails_session_fixation
|
|
43
43
|
|
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.1.
|
|
4
|
+
version: 2.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Stewart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|