#327 ✓wontfix
blizz

do_signup will not validate custom user fields

Reported by blizz | November 12th, 2008 @ 09:10 PM

When a field is added to the user.rb model and a :required validation is added to them the signup always fails claiming the required field is not there. The data is getting to the server which is evident in the log.

To recreate:
Add a field to users.rb and make it :required. Extend the signup form adding that field to field-list fields attribute. Attempts to sign up a new user will now always fail

Comments and changes to this ticket

  • Tom Locke

    Tom Locke December 1st, 2008 @ 03:00 PM

    • Tag changed from do_signup, signup, validate, validation to defect, signup, validate, validation
    • State changed from “new” to “wontfix”

    This is because the lifecycle 'signup' step is removing your new field. The correct way to add a field to signup is to change the create :signup step, e.g. change

    
    :params => [:username, :email_address, :password, :password_confirmation],
    

    To

    
    :params => [:username, :full_name, :email_address, :password, :password_confirmation],
    

    The form will get the new field automatically

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 ยป

People watching this ticket

Pages