lib/devise_zxcvbn/model.rb in devise_zxcvbn-2.1.1 vs lib/devise_zxcvbn/model.rb in devise_zxcvbn-2.1.2
- old
+ new
@@ -17,10 +17,10 @@
end
private
def not_weak_password
- if password_score.score < min_password_score
+ if errors.messages.blank? && password_score.score < min_password_score
errors.add :password, :weak_password, i18n_variables
end
end
def i18n_variables