summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorrobdel12 <robertdeluca19@gmail.com>2017-09-30 18:34:26 -0500
committerrobdel12 <robertdeluca19@gmail.com>2017-09-30 18:34:26 -0500
commitc82678ca76dc0f44eea165d73598454a01bf3be6 (patch)
tree64f0970bd36b425fd83b4a794fd69e6554c943cd /config
parentb2232f74129173f8d67340267d31962a82c1e37c (diff)
downloadgitlab-ce-c82678ca76dc0f44eea165d73598454a01bf3be6.tar.gz
Add `:email_confirmation` to devise `insensitive_keys`
This fixes a bug where the email confirmation input value is case sensative. For example, if the email input is `myemail@example.com` and the email confirmation input is `Myemail@example.com` the form would fail to submit.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/devise.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb
index 3aed2136f1b..0ba0d791054 100644
--- a/config/initializers/devise.rb
+++ b/config/initializers/devise.rb
@@ -36,7 +36,7 @@ Devise.setup do |config|
# Configure which authentication keys should be case-insensitive.
# These keys will be downcased upon creating or modifying a user and when used
# to authenticate or find a user. Default is :email.
- config.case_insensitive_keys = [:email]
+ config.case_insensitive_keys = [:email, :email_confirmation]
# Configure which authentication keys should have whitespace stripped.
# These keys will have whitespace before and after removed upon creating or