Ejemplo n.º 1
0
        public async Task <InvokeResult <AppUser> > SwitchOrgs(string orgid)
        {
            var result = await _orgManager.ChangeOrgsAsync(orgid, OrgEntityHeader, UserEntityHeader);

            if (result.Successful)
            {
                result.Result.PasswordHash = null;
                await _signInManager.SignInAsync(result.Result);
            }

            return(result);
        }