Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey fellow Umbracopeople
Is there an equivalent method in Umbraco 10 to the Umbraco 8
var ws = new WebSecurity(HttpContext, ApplicationContext); var user = Services.UserService.GetByUsername("username"); ws.PerformLogin(user.Id);
Simple Backenduser signin.
/Kristoffer
After several hours of searching and finally giving up, and then creating this post, I stumbled upon https://our.umbraco.com/forum/using-umbraco-and-getting-started/110359-active-directory-backoffice-users-in-umbraco-10
I will have a look at that ;-)
Well ... Once I got the correct code, it was easy :-)
This does it:
BackOfficeIdentityUser backofficeUser = await _backofficeUserManager.FindByNameAsync(username); await _backofficeSigninManager.SignInAsync(backofficeUser, false);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Equivalent function "PerfomLogin" in Umbraco10
Hey fellow Umbracopeople
Is there an equivalent method in Umbraco 10 to the Umbraco 8
Simple Backenduser signin.
/Kristoffer
After several hours of searching and finally giving up, and then creating this post, I stumbled upon https://our.umbraco.com/forum/using-umbraco-and-getting-started/110359-active-directory-backoffice-users-in-umbraco-10
I will have a look at that ;-)
Well ... Once I got the correct code, it was easy :-)
This does it:
is working on a reply...