mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
DEV: Enable the normalize_emails site setting by default (#29587)
The normalize_emails setting makes it so that only canonical e-mails are considered for validation purposes. This means disallowing "plus addressing". For example, with this enabled, bob@discourse.org and bob+foo@discourse.org are considered the same address, and you can only sign up with one of them. Currently this is disabled by default, leading to a lot of spam sign-ups. It's healthier to consider this an opt-out setting.
This commit is contained in:
@ -904,7 +904,7 @@ RSpec.describe DiscourseConnect do
|
||||
user = sso.lookup_or_create_user(ip_address)
|
||||
expect(user.active).to eq(true)
|
||||
|
||||
user.primary_email.update_columns(email: "xXx@themovie.com")
|
||||
user.primary_email.update(email: "xXx@themovie.com")
|
||||
|
||||
user = sso.lookup_or_create_user(ip_address)
|
||||
expect(user.email).to eq(old_email)
|
||||
|
Reference in New Issue
Block a user