#101 ✓moved_to_github
José Valim

is validates_length_of :password_confirmation needed?

Reported by José Valim | May 2nd, 2009 @ 09:41 AM


Is validates_length_of :password_confirmation needed?

If the password is too short and the password confirmation does match, it will fail because the password is too short. We don't need to say that both password and password confirmation are too short.

I do worry because it will show an unnecessary error message, so my users shouldn't be worried with it.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket