scambra/devise_invitable — Issue #140: validations on accept invitation
Author: gitt
Created: 2011-11-10 08:35:54+00:00
State: open

I was doing some testing tonight, after reports that my validations aren't being run. My setup is the following:

Devise User has one profile, this profile validates First Name / Last Name. These validations I understand aren't run on invite, which is fine, however, when the user clicks the accept invitation link, they come to a custom form, that asks for first, last name, email, and password. ( email is asked for, in case they're rather use a different email address ). However, if you don't enter a first/last name, the form still submits, and logs the user in. I'm getting ready to fork if needed, but I thought I'd ask first, in case I missed something.

Thanks!