Base solution for your next web application
Open Closed

where could I access .loginasync method? #7853


User avatar
0
wcdagency created

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)
  • User Avatar
    0
    ryancyq created
    Support Team

    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?

  • User Avatar
    0
    maliming created
    Support Team

    loginResult will never be null, LoginAsync is method of AbpLoginManager.

    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

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.