Fix for: U4-10444 - External Logins have stopped working since the 7.7.1 update when using auto linking

This commit is contained in:
Sam Sperling
2017-09-22 13:55:15 +10:00
parent 0070d8b913
commit 201ac076c3
2 changed files with 12 additions and 1 deletions

View File

@@ -124,12 +124,15 @@ namespace Umbraco.Core.Security
var found = _userService.GetUserById(asInt.Result);
if (found != null)
{
// we have to remember whether Logins property is dirty, since the UpdateMemberProperties will reset it.
var isLoginsPropertyDirty = user.IsPropertyDirty("Logins");
if (UpdateMemberProperties(found, user))
{
_userService.Save(found);
}
if (user.IsPropertyDirty("Logins"))
if (isLoginsPropertyDirty)
{
var logins = await GetLoginsAsync(user);
_externalLoginService.SaveUserLogins(found.Id, logins);