devise_zxcvbn 2.1.1 → 2.1.2

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
  SHA1:
3
- metadata.gz: b8bb0278689426c29675ba90ed3418d35563ee51
4
- data.tar.gz: a67a8a6f945d693da8e1e7808fe4bb2c051e3e4c
3
+ metadata.gz: 12c2c68408470dbeaa156d601bd7e71491ec55fe
4
+ data.tar.gz: b0d07811445d94076b2fc60bb74df9bcc54db30f
5
5
  SHA512:
6
- metadata.gz: b8d0fbc54d4ea02fd709f40abe7b9174b4c3c746a984c46d9511f2960413315676fe57f0bce78a113ae80230792582ad5435a2474a0a8e00e202407293c18d51
7
- data.tar.gz: a40ab39d31bad6a9a64f581d09a0ae262e058560a739ffde6a80bc42b2fedabe5e35f126c37e47633b71856188d9cc918dbdbeaa43401133bdd586a3291ade7e
6
+ metadata.gz: eaebd9af17f82f803eab850cdfa7d81cc1ebf3c1b2332bf2110ed7a06ab50f9987d4d2aab55a187e6e515c8a377f6d5805b8f72bb2cf60c38d5cab0860a5e2e2
7
+ data.tar.gz: 89033429b04b269c41e0d74784e1c8e0228d145f0924c63e9bc60d2cc55bdbc1bab5613eef1d436df00335be3d04f83e980e4efc893197ef9c3e5bf606d93fca
@@ -19,7 +19,7 @@ module Devise
19
19
  private
20
20
 
21
21
  def not_weak_password
22
- if password_score.score < min_password_score
22
+ if errors.messages.blank? && password_score.score < min_password_score
23
23
  errors.add :password, :weak_password, i18n_variables
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module DeviseZxcvbn
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
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: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bit Zesty
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-21 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.4.5
156
+ rubygems_version: 2.4.5.1
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Devise plugin to reject weak passwords