0
behiunforgiven created
I use this function to remove roles, why user roles remain ?
public async Task DeleteRolesAsync(List<string> deleteList, long userId)
{
foreach (var roleName in deleteList)
{
IdentityResult deletionResult = await _userManager.RemoveFromRoleAsync(userId, roleName);
}
}
2 Answer(s)
-
0
Can you open an issue for that on github (<a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/new">https://github.com/aspnetboilerplate/mo ... issues/new</a>)? You may use SetRoles method for now.
-
0
<cite>hikalkan: </cite> Can you open an issue for that on github (<a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/issues/new">https://github.com/aspnetboilerplate/mo ... issues/new</a>)? You may use SetRoles method for now.
Thank You SetRoles works Great !