lib/devise_zxcvbn/model.rb in devise_zxcvbn-5.0.0 vs lib/devise_zxcvbn/model.rb in devise_zxcvbn-5.1.0

- old
+ new

@@ -20,9 +20,15 @@ def password_weak? password_score.score < min_password_score end + protected + + def skip_password_complexity? + !password_required? + end + private def strong_password if errors.messages.blank? && password_weak? errors.add :password, :weak_password, i18n_variables