-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devise validation of an email address returns: 'is invalid' #32
Comments
Take a look to this: #25 it was because of the regex itself for me. |
Thanks for your comment. But the problem for me is here that devise defines the email regex, and I would really like not to overwrite Devise validation functionality. |
This isue too could bring you more information about the issue, maybe your Device gem override the native regex way. |
@ChristofferJoergensen , same issue. |
Hi @ricardodovalle. No, I have not yet solved it. I am a little bit afraid of implementing some custom regex override. I feel like I should stick to the validations that Devise has implemented. |
Having the exact same issue. |
+1 same issue. |
+1 same issue for devise validatable, how can we fix. |
Same here. Judge mark any email as invalid. |
@ChristofferJoergensen There's nothing magical about Devise's validations, you can see them here: If you don't want to remove the
As you see from the comments (and source here: https://github.com/plataformatec/devise/blob/18b6064d74726147eccd69b24812000074261bbb/lib/devise.rb#L108) their regex is actually pretty weak. |
+1 same here with devise |
fixed in #60 |
Great gem that you have shared with us!
I am having some problems validating the
email
attribute in myUser
model. I am usingdevise
's validatable module to perform validation of the uniqueness of theemail
as well as some regex validations I guess.When using
judge
on my form, I get back this 'is invalid' error when I enter any email into my form.Any idea why this is?
My initializer:
My js:
My form:
My log:
And when I remove the validatable module from my
User
model, no errors are returned.The text was updated successfully, but these errors were encountered: