mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-26 04:03:03 +01:00
🐛 prevent @googlemail.com trick
This commit is contained in:
parent
ce07018e30
commit
fb7c119bf1
@ -231,7 +231,8 @@ export function adjustEmail(email: string) {
|
||||
const domain = parts[5];
|
||||
const user = parts[1];
|
||||
|
||||
if (domain === "gmail.com") {
|
||||
// TODO: check accounts with uncommon email domains
|
||||
if (domain === "gmail.com" || domain === "googlemail.com") {
|
||||
// replace .dots and +alternatives -> Gmail Dot Trick https://support.google.com/mail/answer/7436150 and https://generator.email/blog/gmail-generator
|
||||
return user.replace(/[.]|(\+.*)/g, "") + "@gmail.com";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user