Example #1
0
        private async Task <AbpLoginResult <Tenant, User> > GetLoginResultGoogleAsync(string token, string tenancyName, string secretCode)
        {
            var loginResult = await _logInManager.LoginAsyncNoPass(token, secretCode, tenancyName, false);

            switch (loginResult.Result)
            {
            case AbpLoginResultType.Success:
                return(loginResult);

            default:
                throw _abpLoginResultTypeHelper.CreateExceptionForFailedLoginAttempt(loginResult.Result, null, tenancyName);
            }
        }