Users with duplicate non-unique Emails in Auth0
Users with duplicate non-unique Emails in Auth0
Name: unique. Turn on username required.
Name: fixer
Turn on custom database and copy scripts from custom-db/
folder. Turn on username required.
Create an M2M Application.
- Allocate both
unique
andfixer
connections to this app. - Assign Management API. All 'users' and 'ticket' scopes
- Copy application details to
.env
,server/env.php
files
Name | Value |
---|---|
Client_ID | M2M Client ID |
Client_Secret | M2M Client Secret |
Connection | unique |
Add rules/merger.js
to Rules.
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
// ....
forgotPasswordLink: 'http://localhost:8080/forgotpassword.php'
});
php -S localhost:8080 -t server
./sign-up.sh -u user01 -m [email protected] -p password1
./sign-up.sh -u user02 -m [email protected] -p password2
./sign-up.sh -u user03 -m [email protected] -p password3
https://tenant.auth0.com/authroize?connection=fixer
In the login page, click on "forgotten password" link. Enter username for reset email.
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
// ....
forgotPasswordLink: 'http://mycompany.com/forgotpassword.php'
});