Skip to content

Commit

Permalink
'unsecure' => 'insecure'
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Dec 19, 2010
1 parent 432556b commit 863de37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/locale/en.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ en:


attributes: attributes:
password: password:
unsecure: "is too weak and common" insecure: "is too weak and common"
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/secure_password.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def password=(unencrypted_password)
def password_must_be_strong def password_must_be_strong
if password.present? if password.present?
errors.add(:password, :too_short, :count => 7) unless password.size > 6 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 end
end end
Expand Down

0 comments on commit 863de37

Please sign in to comment.