'unsecure' => 'insecure'
This commit is contained in:
parent
432556b923
commit
863de37b05
|
@ -28,4 +28,4 @@ en:
|
|||
|
||||
attributes:
|
||||
password:
|
||||
unsecure: "is too weak and common"
|
||||
insecure: "is too weak and common"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue