cookie_crypt 1.1.3 → 1.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
  SHA1:
3
- metadata.gz: 4642bb48fcce6a45ae7d8ccd8f8b690c82c6016f
4
- data.tar.gz: 6510b1e335bdffea2f18b107f9c9b80b7a91624b
3
+ metadata.gz: 84e632676b78ea76d8a02e60db8662e89a2d3d7f
4
+ data.tar.gz: 395894fa59ff78d985228ab89d4a102fd421841f
5
5
  SHA512:
6
- metadata.gz: 2eadc3a72e511bde87abfca2ee9c6aafcee41ab6dc2f90f5ec41050934df66f0634a23a33fd3a2e12abbbc68be5b1f9e41b9dcf69fa8faec2adf7b26baf9394a
7
- data.tar.gz: afe05c8ff74564d95cc7efa34e5d0bdd1a8c2f31c03bd0999ff7041b3ce33932506bd15a60ac9b33ffc9871689481fcbd306f2518cc73b4c19db1f4366352bf3
6
+ metadata.gz: 4fac98960b7f25f2c419e80851834c0f2bfbdf69567058fd22eec5ad2fc7b75a4ee19f51e7da5d6054465837edaf86eeabf88ad928d9834dfcdb9a3ae13ea0e3
7
+ data.tar.gz: 1e045a35ed0deb4071c665824116b3efc8636e2f8be396ec6f055923d4373a7743b2d9b5c9387263ffc4b3a9178c2890103f4c54bcd3ef685cd5f2d72aba6683
@@ -121,6 +121,8 @@ module CookieCrypt
121
121
  session[:cyclemod] = 0
122
122
  elsif resource.cookie_crypt_attempts_count != 0 && resource.cookie_crypt_attempts_count%resource.class.cycle_question_on_fail_count == 0
123
123
  session[:cyclemod] += 1
124
+ else #logout then log back in at a future time?
125
+ session[:cyclemod] = 0
124
126
  end
125
127
 
126
128
  session[:cyclemod] = 0 if session[:cyclemod]+resource.security_cycle > hash.keys.count/2
@@ -136,10 +138,13 @@ module CookieCrypt
136
138
  end
137
139
  session[:cyclemod] = r
138
140
 
141
+ else #logout then log back in at a future time?
142
+ session[:cyclemod] = 0
139
143
  end
140
144
  end
141
145
 
142
146
  def update_resource_cycle hash
147
+ #reset or rollover the cycle number
143
148
  if resource.class.cookie_crypt_auth_through == :one_question_cyclical ||
144
149
  resource.class.cookie_crypt_auth_through == :two_questions_cyclical
145
150
 
@@ -1,3 +1,3 @@
1
1
  module CookieCrypt
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookie_crypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitrii Golub