phatworx / devise_security_extension

An enterprise security extension for devise, trying to meet industrial standard security demands for web applications.
MIT License
747 stars 347 forks source link

Ability to override secure_validatable password message #44

Open ghost opened 11 years ago

ghost commented 11 years ago

When a user's password does not pass the regexp formatting requirement, the user gets the message "Password is invalid". Is there a way to override this message?

RyanBibby commented 11 years ago

You can just use the en.yml

eg

activerecord: errors: models: user: attributes: password: invalid: "Your new message"

denyago commented 11 years ago

However, the default message in this gem may be amended, as it suggests a regex for password validation.

My pull has this improvement: #55

bbozo commented 11 years ago

+1 need this feature

ghost commented 10 years ago

Thanks so much!