0
mkinc created
- ABP Framework version: v7.2.1
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): Separated OpenIdDict auth server
- Exception message and stack trace:
- Steps to reproduce the issue:
- Log in as host admin
- Create a user with username abc and email john.smith@example.com
- Create another user with username john.smith@example.com and email john.smith2@example.com
- Expected behaviour: Error when creating user to say a user already exists with email 'john.smith@example.com'.
- Actual behaviour: User is created successfully, but the first user with username abc can now no longer log into their account using their email address.
Similar checks need to be made when attempting to change either username or password since no username should be identical with another user's email address (and vice versa). However it should be maintained that the username and email address of an individual user should be able to be the same. Please refund the question. Thanks.
4 Answer(s)
-
0
hi
I will add code to prevent this. Your credit refunded.
-
0
Thanks maliming. Would we expect to see this in 7.3.1 / 7.4.0 or something?
-
0
hi
It may be available on 7.3.2
-
0
hi
You can add the
AbpIdentityUserValidator
to solve it now.https://github.com/abpframework/abp/pull/17212