You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 27, 2023. It is now read-only.
I have inject Usermnanger in startup.cs class like this, but i got the error
"Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[TCMS.WebUI.TCMS_Data.Entities.User]' while attempting to activate 'TCMS.WebUI.Startup'.",
Can you suggest something to resolve it? Thank you
private async Task<ClaimsIdentity> GetIdentity(string username, string password)
{
var result = await _signInManager.PasswordSignInAsync(username, password, false, lockoutOnFailure: false);
if (result.Succeeded)
{
var user = await _userManager.FindByNameAsync(username);
var claims = await _userManager.GetClaimsAsync(user);
return (new ClaimsIdentity(new GenericIdentity(username, "Token"), new Claim[] { }));
}
return new ClaimsIdentity();
}
I have inject Usermnanger in startup.cs class like this, but i got the error
"Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[TCMS.WebUI.TCMS_Data.Entities.User]' while attempting to activate 'TCMS.WebUI.Startup'.",
Can you suggest something to resolve it? Thank you