Hello in ../mvc/accountcontroller
{
var loginResult = await _logInManager.LoginAsync(usernameOrEmailAddress, password, tenancyName);
switch (loginResult.Result)
{
case AbpLoginResultType.Success:
return loginResult;
default:
throw _abpLoginResultTypeHelper.CreateExceptionForFailedLoginAttempt(loginResult.Result, usernameOrEmailAddress, tenancyName);
}
}
loginresult returns null. I want to check the .LoginAsync function but I could not be able to access it, I have to debug why user could not be able to login. where could I access .loginasync method?
3 Answer(s)
-
0
Hi, you can check the source code of AbpLoginManager at https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.ZeroCore/Authorization/AbpLoginManager.cs
LogResult should not be null in any case. Have you made any changes to the default login flow?
-
0
loginResult
will never benull
,LoginAsync
is method ofAbpLoginManager
.https://github.com/aspnetboilerplate/aspnetboilerplate/blob/f19f60ffee2b78ff0672282feca5e35e605384cd/src/Abp.Zero/Authorization/AbpLoginManager.cs#L67 https://github.com/aspnetboilerplate/aspnetboilerplate/blob/c0604b9b1347a3b9581bf97b4cae22db5b6bab1b/src/Abp.ZeroCore/Authorization/AbpLoginManager.cs#L75
-
0
This issue is closed because it has not had recent activity for a long time.