コード例 #1
0
        private async Task <AbpLoginResult <Tenant, User> > GetLoginResultAsync(string phone, string password, string tenancyName)
        {
            var loginResult = await _logInManager.LoginByPhoneAsync(phone, password, tenancyName);

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

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