Read about our upcoming Code of Conduct on this issue

Commit fd8c5600 authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'rd/fix-case-sensative-email-conf-signup' into 'master'

Fix case sensitive email confirmation on signup

See merge request gitlab-org/gitlab-ce!14606
title: Fix case sensitive email confirmation on signup
merge_request: 14606
author: robdel12
type: fixed
......@@ -36,7 +36,7 @@
# 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
......@@ -24,6 +24,24 @@
context "when sigining up with different cased emails" do
it "creates the user successfully" do
user = build(:user)
visit root_path
fill_in 'new_user_name', with:
fill_in 'new_user_username', with: user.username
fill_in 'new_user_email', with:
fill_in 'new_user_email_confirmation', with:
fill_in 'new_user_password', with: user.password
click_button "Register"
expect(current_path).to eq dashboard_projects_path
expect(page).to have_content("Welcome! You have signed up successfully.")
context "when not sending confirmation email" do
before do
stub_application_setting(send_user_confirmation_email: false)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment