Commit 2dd78f36af1f1b40a93d1e26a3b948d092a6a6dc

Authored by Arthur Neves
1 parent ef9dfa7c
Exists in master and in 1 other branch production

Dont use ^ and $ on email_regexp

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/initializers/devise.rb
@@ -132,7 +132,7 @@ Devise.setup do |config| @@ -132,7 +132,7 @@ Devise.setup do |config|
132 # one (and only one) @ exists in the given string. This is mainly 132 # one (and only one) @ exists in the given string. This is mainly
133 # to give user feedback and not to assert the e-mail validity. 133 # to give user feedback and not to assert the e-mail validity.
134 # config.email_regexp = /\A[^@]+@[^@]+\z/ 134 # config.email_regexp = /\A[^@]+@[^@]+\z/
135 - config.email_regexp = /^([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})$/i 135 + config.email_regexp = /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i
136 136
137 # ==> Configuration for :timeoutable 137 # ==> Configuration for :timeoutable
138 # The time you want to timeout the user session without activity. After this 138 # The time you want to timeout the user session without activity. After this