devise_zxcvbn 5.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff8317142cd17809de1fe6825970d106063f6c1413ef86d24be86b1c5b4dcc51
4
- data.tar.gz: 569c6ab6a45ffca59600a36a18c079d4924361680a22663872a2618fac99031e
3
+ metadata.gz: 9faf40fa43993ed317e4702fdee24a0fdbda0c60d8463005ddbaa77434ee96cf
4
+ data.tar.gz: 3158479354cf5b9c0f8d77d0c5681c0fbce866562cb64fcc6944ab98c4b0e31b
5
5
  SHA512:
6
- metadata.gz: 696f4916cc7e45b7f88fd7af2e972ce53185e294b07fd4a766106a6e5a9ae5ad545f71165d05d9341381eed31d9e4d9e35db8e16554500b464327979055b33f7
7
- data.tar.gz: 58c4048efc829042e0bfb27c28614891e81bc853d65e5742592f19f99039723d786cffd5f29282674e29a04035642d4abdae5911500fc93b7b802ee58592f637
6
+ metadata.gz: 7e9b2e98a6344edbf92b9bc457e1fafad3907df32c91382408458240bfc66c38bf948e09fce0bffe34b8b964501c134cb373e391f71a765e3234c98bbdaf37e0
7
+ data.tar.gz: 484680d56eb4663e73e369311159aeda31fe9e50b9efa49c12ae66d8aedc4459604fb90471c691d37e468bbe04e76d54e3c12b078120b12160cbcbcef102a756
data/README.md CHANGED
@@ -70,7 +70,7 @@ The default error message:
70
70
 
71
71
  You can customize this error message modifying the `devise` YAML file.
72
72
 
73
- The `crack_time_display`, `password_sample`, `score` and `min_password_score` variables are passed through if you need them.
73
+ The `crack_time_display`, `feedback`, `score` and `min_password_score` variables are passed through if you need them.
74
74
 
75
75
  ```yml
76
76
  # config/locales/devise.en.yml
@@ -22,6 +22,12 @@ module Devise
22
22
  password_score.score < min_password_score
23
23
  end
24
24
 
25
+ protected
26
+
27
+ def skip_password_complexity?
28
+ !password_required?
29
+ end
30
+
25
31
  private
26
32
 
27
33
  def strong_password
@@ -1,3 +1,3 @@
1
1
  module DeviseZxcvbn
2
- VERSION = "5.0.0"
2
+ VERSION = "5.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_zxcvbn
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bit Zesty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-15 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel