This fix currently fixes the error thrown when two different users has the same first name and trying to register.
Description
This fix currently fixes the error thrown when two different users has the same first name and trying to register.
The first user would get registered successfully and an organization created for the user, but the second user with the same first name would have an account created, but no organization created because of organization name duplication, as the first name of users are used to create an organization for them on sign up. This fix solves that issue by using the user's email address as the organization name, that way every organization name would be unique as the user email is unique.
Related Issue (Link to issue ticket)
[]()
Motivation and Context
This fix solves the issue of organization name duplication on user creation.
How Has This Been Tested?
Screenshots (if any)
registering first user with same firstname
registering second user with same firstname
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
Please let me know if there is any change i need to make. thank you.
This fix currently fixes the error thrown when two different users has the same first name and trying to register.
Description
This fix currently fixes the error thrown when two different users has the same first name and trying to register. The first user would get registered successfully and an organization created for the user, but the second user with the same first name would have an account created, but no organization created because of organization name duplication, as the first name of users are used to create an organization for them on sign up. This fix solves that issue by using the user's email address as the organization name, that way every organization name would be unique as the user email is unique.
Related Issue (Link to issue ticket)
[]()
Motivation and Context
This fix solves the issue of organization name duplication on user creation.
How Has This Been Tested?
Screenshots (if any)
registering first user with same firstname
registering second user with same firstname
Types of changes
Checklist:
Please let me know if there is any change i need to make. thank you.