
+ should be valid in email validation
Reported by ddux | April 20th, 2009 @ 11:28 PM
I tried to use dakota.dux+1@gmail.com with authlogic - but had a problem with the validate_format_of_login_field_options. I changed line 46 of login.rb in acts_as_authentic to this:
config(:validates_format_of_login_field_options, value, {:with => /\A\w[\w.+-_@ ]+\z/, :message => I18n.t('error_messages.login_invalid', :default => "should use only letters, numbers, spaces, and +.-_@ please.")})
Thank you for your great project
Comments and changes to this ticket
-
Ben Johnson April 20th, 2009 @ 11:53 PM
- State changed from new to resolved
Thanks, this has been applied.
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.
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.