5420: v8 Invited user keeps showing as "has not logged in yet"

This commit is contained in:
Arnold Visser
2019-05-09 10:31:44 +02:00
parent 16b88ca2ff
commit 62a6a4ec92

View File

@@ -135,6 +135,8 @@ namespace Umbraco.Web.Editors
//They've successfully set their password, we can now update their user account to be approved
Security.CurrentUser.IsApproved = true;
//They've successfully set their password, and will now get fully logged into the back office, so the lastlogindate is set so the backoffice shows they have logged in
Security.CurrentUser.LastLoginDate = DateTime.UtcNow;
Services.UserService.Save(Security.CurrentUser);
//now we can return their full object since they are now really logged into the back office