SonarSoftwareInc / customer_portal

A prebuilt customer portal for Sonar.
https://sonar.software
25 stars 51 forks source link

Use the same email validation on the portal as in the backend #104

Open mlow opened 3 years ago

mlow commented 3 years ago

It's possible for a portal user to set their email to something invalid, such as with a digit in the TLD. Doing so will result in being unable to even load the associated account in the V2 interface.

mlow commented 3 years ago

Some example images

Example invalid email: Screenshot_20210301_120312

Attempting to load the account Screenshot_20210301_120331

Also results in a hang on the /accounts/ listing if account with the broken email address matches the current search filter and page.

Resolves after correcting the email address from the portal or API.

geneccx commented 3 years ago

I believe we've fixed this on the Sonar V2 side so that it doesn't result in a broken account view. We'll look into adding the validation here too.