'unsecure' => 'insecure'

This commit is contained in:
José Valim 2010-12-19 09:37:08 +01:00
parent 432556b923
commit 863de37b05
2 changed files with 2 additions and 2 deletions

View File

@ -28,4 +28,4 @@ en:
attributes:
password:
unsecure: "is too weak and common"
insecure: "is too weak and common"

View File

@ -64,7 +64,7 @@ module ActiveModel
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