Ghost/ghost/members-api/lib/repositories
Rishabh Garg 2eac41b1f4
🐛 Fixed invalid email getting saved for members (#16021)
refs https://github.com/TryGhost/Team/issues/2235

We found some cases which can cause a site to have member emails that have invalid characters like `member@example.com�`. This happened due to the `validator` version used by Ghost not able to catch some specific cases as invalid email, allowing members to be created with them either via Admin or Importer or direct signup. Portal UI already blocked these email as invalid. This change:

- updates `@tryghost/validator` to include a latest version of email validator that catches these invalid cases
- doesn't allow member creation with invalid email like above
- doesn't allow existing member emails to be edited to invalid
2022-12-16 16:47:52 +05:30
..
event.js Added support for EmailSpamComplaintEvent to activity feed 2022-12-01 17:26:24 +07:00
member.js 🐛 Fixed invalid email getting saved for members (#16021) 2022-12-16 16:47:52 +05:30
product.js Added 'getDefaultProduct' convenience method to product repo 2022-10-20 17:19:52 +08:00