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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/authie/session.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34f5fbbc0393fb8f28c1aa13fa1bf7e1bb04c53588c679844dcf46348c119921
4
- data.tar.gz: f875d3738a56db47b795cacfcabcf1447d87efec7b7a231db06d8b72bce387db
3
+ metadata.gz: f06ec249cc2efa9d4924d524769752cc9702cf017a1d0020d010e8d4a9eae9f8
4
+ data.tar.gz: f056af849c503c3870f69a707a4409428d6b200cff4df73237cd21e3ca5ce2ed
5
5
  SHA512:
6
- metadata.gz: 6b1866dae5679014d40a15b9bf6ba1b463b80f7ffba8246ef056bcbe48cce07b39395a85dbe0b6ef1849271c794044571dd4cbad71c3591a478167b378917bb2
7
- data.tar.gz: a109dad855e4d97a11cf4b9f4dea6316383e34a5a7a2a13c10bffc1efe8a5ffcc45c487bb90793dadbcd694a5f2ecb647d0c519a6cc17fb53dc77bb8722d7ea1
6
+ metadata.gz: 55baf7050e12a28da721b94764740a9267b1ea6b16cb7fe515cf306bfa695463055fae8b2aa16badf47b541f470cb6357b40611d5965d8d51c03a18f7cf985db
7
+ data.tar.gz: 4853c8cafca07ec918c2d5f1e3ccfa01988432021ded6350470be15f369561aa534bc1a845521107f8e5d2a5a602d37e160a556d936b09e9b4f8573b9fa70ccb
@@ -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: false)
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, to: :session
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authie
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.rc8
4
+ version: 4.0.0.rc9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke