-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(SSO): only allow SSO email when registering TASK-1493 (#5478)
### 📣 Summary Do not allow SSO users to register with a different email then the one provided by the server. ### 📖 Description Make the `email` field readonly when creating an account with SSO. ### 💭 Notes This was originally a setting, but we've decided we want the field to always be read-only. In addition to the UI change, this PR also adds a validator on the email field to make sure that no one can register with a different email via a clever POST request. The error message will require translation. This should also fix TASK-1493. ### 👀 Preview steps Bug template: 1. ℹ️ Enable Kobo Google Apps SSO 2. On the login page, click `Create an account` -> `Register with SSO` -> `Log In` 3. Sign in to your Google account 4. 🔴 [on main] Change the email field in the registration form and click 'Register and Save' 5. 🔴 [on main] Go to Account Settings -> Security. Under the email address you'll see "Check your email <new_email>. A verification link has been sent to confirm your ownership. Once confirmed, this address will replace <correct_email>" 6. 🟢 [on PR] The email field is read-only
- Loading branch information
Showing
3 changed files
with
34 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters