Skip to content

Commit

Permalink
Stop groups being set twice each login
Browse files Browse the repository at this point in the history
  • Loading branch information
stevetemple committed Oct 4, 2023
1 parent 7f815f3 commit 42338cc
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ public void Configure(BackOfficeExternalLoginProviderOptions options)
// Optional callback
OnAutoLinking = (autoLoginUser, loginInfo) =>
{
SetGroups(autoLoginUser, loginInfo);
SetName(autoLoginUser, loginInfo);
if (!autoLoginUser.IsApproved)
{
SetGroups(autoLoginUser, loginInfo);
SetName(autoLoginUser, loginInfo);
}
},
OnExternalLogin = (user, loginInfo) =>
{
Expand Down

0 comments on commit 42338cc

Please sign in to comment.