authie 4.0.0.rc8 → 4.0.0.rc9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authie/session.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f06ec249cc2efa9d4924d524769752cc9702cf017a1d0020d010e8d4a9eae9f8
|
4
|
+
data.tar.gz: f056af849c503c3870f69a707a4409428d6b200cff4df73237cd21e3ca5ce2ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55baf7050e12a28da721b94764740a9267b1ea6b16cb7fe515cf306bfa695463055fae8b2aa16badf47b541f470cb6357b40611d5965d8d51c03a18f7cf985db
|
7
|
+
data.tar.gz: 4853c8cafca07ec918c2d5f1e3ccfa01988432021ded6350470be15f369561aa534bc1a845521107f8e5d2a5a602d37e160a556d936b09e9b4f8573b9fa70ccb
|
data/lib/authie/session.rb
CHANGED
@@ -114,10 +114,10 @@ module Authie
|
|
114
114
|
#
|
115
115
|
# @raises [ActiveRecord::RecordInvalid]
|
116
116
|
# @return [Authie::Session]
|
117
|
-
def mark_as_two_factored(skip:
|
117
|
+
def mark_as_two_factored(skip: nil)
|
118
118
|
@session.two_factored_at = Time.now
|
119
119
|
@session.two_factored_ip = @controller.request.ip
|
120
|
-
@session.skip_two_factor = skip
|
120
|
+
@session.skip_two_factor = skip unless skip.nil?
|
121
121
|
@session.save!
|
122
122
|
Authie.config.events.dispatch(:marked_as_two_factor, self)
|
123
123
|
self
|
@@ -305,7 +305,7 @@ module Authie
|
|
305
305
|
delegate :two_factored_at, to: :session
|
306
306
|
delegate :two_factored_ip, to: :session
|
307
307
|
delegate :two_factored?, to: :session
|
308
|
-
delegate :skip_two_factor
|
308
|
+
delegate :skip_two_factor?, to: :session
|
309
309
|
delegate :update, to: :session
|
310
310
|
delegate :update!, to: :session
|
311
311
|
delegate :user_agent, to: :session
|