-
Hi, I want to add a button called "Simulate Login" to the user list in the admin background. Used to perform tests that impersonate user identity I have added the OrchardCore.Users dependency on the Startups of my module I've copied Is it the dependency order or the razore file name? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
public class MockUserDisplayDriver : DisplayDriver<User>
{
public override IDisplayResult Display(User user)
{
return Combine(
Initialize<SummaryAdminUserViewModel>("UserButtons", model => model.User = user).Location("SummaryAdmin", "Actions:2")
);
}
} |
Beta Was this translation helpful? Give feedback.
-
Razor page filename should be and the DisplayDriver
|
Beta Was this translation helpful? Give feedback.
-
Hope this helps you |
Beta Was this translation helpful? Give feedback.
Razor page filename should be
UserButtons.MockUserLogin.cshtml
and the DisplayDriver