Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a default service to link local user accounts with external ones during the registration process #16110
Implement a default service to link local user accounts with external ones during the registration process #16110
Changes from 34 commits
aa734f1
c387004
2ee51cd
a12d557
0ce3a96
bd01473
ed96f40
dfd2dd6
6d74eaf
30188bf
ed52a4c
4726652
c8898a4
e04b9aa
1ce6665
5115dd3
604fd35
8179182
f210886
31967ed
06e963f
010de02
c9914fe
12e0597
3255f3d
a330c50
7e50a95
139ca99
c28fbca
c3f4bbe
5fd181a
ec6a034
63e26ca
5c378b8
f2faf17
a0ce348
807ca2d
da86ae6
6459e5d
d3e1010
3bfcd28
a6ec2b9
7be7530
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only this should be in the
if
. Otherwise, it would require a unique e-mail even for accounts found byFindByLoginAsync()
above.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no problem to make the change but if
FindByLoginAsync()
find a User, this code can't be execute.OrchardCore/src/OrchardCore.Modules/OrchardCore.Users/Controllers/AccountController.cs
Lines 382 to 403 in 3853b97
fixed in f2faf17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand. If
FindByLoginAsync()
finds a user, then the code block you show will execute, and rightfully so. In your case, that would mean that their PLUTO ID matched, what means that they're definitely the same user. In your use case, it won't find a user when you want the second account with the same e-mail to log in. And you'll need to configureRequireUniqueEmail
asfalse
too.