Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

'unsecure' => 'insecure'

  • Loading branch information...
commit 863de37b05900f037132656812b7ef550d096ae1 1 parent 432556b
@josevalim josevalim authored
View
2  activemodel/lib/active_model/locale/en.yml
@@ -28,4 +28,4 @@ en:
attributes:
password:
- unsecure: "is too weak and common"
+ insecure: "is too weak and common"
View
2  activemodel/lib/active_model/secure_password.rb
@@ -64,7 +64,7 @@ def password=(unencrypted_password)
def password_must_be_strong
if password.present?
errors.add(:password, :too_short, :count => 7) unless password.size > 6
- errors.add(:password, :unsecure) if WEAK_PASSWORDS.include?(password)
+ errors.add(:password, :insecure) if WEAK_PASSWORDS.include?(password)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.