Skip to content

Commit 65cfc14

Browse files
committed
Fixes persisting the IsApproved for users
1 parent baa51d9 commit 65cfc14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Umbraco.Infrastructure/Security/BackOfficeUserStore.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,12 @@ private bool UpdateMemberProperties(IUser user, BackOfficeIdentityUser identityU
482482
user.FailedPasswordAttempts = identityUser.AccessFailedCount;
483483
}
484484

485+
if (user.IsApproved != identityUser.IsApproved)
486+
{
487+
anythingChanged = true;
488+
user.IsApproved = identityUser.IsApproved;
489+
}
490+
485491
if (user.IsLockedOut != identityUser.IsLockedOut)
486492
{
487493
anythingChanged = true;

0 commit comments

Comments
 (0)