Open Closed

Forgot Password throwing exception #1134


User avatar
0
melmarcelo created

Hi,

I am encountering an error when I perform forgot password.

Steps to Produce:

  1. Go to https://localhost:44332/Account/ForgotPassword
  2. Type in a valid email address (tried a randon email as well, same result)
  3. Hit Submit
  4. Error above is returned

I understand there is a similar question raised for this (https://github.com/abpframework/abp/issues/5761). The answer said that it works on v3.3.0 which I am currently using, but I still face the error.

Additional Note: Forgot pasword works fine when the scenario is like this:

  1. I logged in successfully using any user.
  2. Log out.
  3. Go to Forgot Password, enter valid email address and hit Submit.
  4. I get an email to the email address entered on Forgot password page.

To easily reproduce the issue, open a new incognito tab (close existing tabs first, if there is any opened).

  • ABP Framework version: v3.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): tiered (mvc)
  • Exception message and stack trace: BusinessException: Exception of type 'Volo.Abp.BusinessException' was thrown. Running project on IIS.

8 Answer(s)
  • User Avatar
    0
    melmarcelo created

    Hi,

    I tried to add a Tenant before clicking Submit in Forgot Password page and the exception was not thrown anymore.

    Might help.

    Regards.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi melmarcelo

    Can you try it in chrome incognito?

  • User Avatar
    0
    melmarcelo created

    Hello maliming,

    I already tried it in chrome incognito and in edge private, same error happens when I did not select a Tenant before hitting Submit in Forgot Password.

    I am trying to put a workaround to stop and catch if no Tenant was selected but the error above gets thrown even before entering the OnPostAsync method of ForgotPassword class.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Thanks, I will check this.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://github.com/abpframework/abp/issues/5761

    Here is the change details.

  • User Avatar
    0
    melmarcelo created

    Hi maliming,

    Thanks but I already have the full code of latest ForgotPassword.cshtml & ForgotPassword.cshtml.cs in my solution.

    https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/ForgotPassword.cshtml https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/ForgotPassword.cshtml.cs

    I added a breakpoint on OnPostAsync, but it is not coming inside the method and throws the error first. So the FriendyException is not being shown at all.

    I can confirm that the breakpoint in OnGetAsync method works.

  • User Avatar
    0
    melmarcelo created

    Hi maliming,

    Thanks but I already have the full code of latest ForgotPassword.cshtml & ForgotPassword.cshtml.cs in my solution.

    https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/ForgotPassword.cshtml https://github.com/abpframework/abp/blob/dev/modules/account/src/Volo.Abp.Account.Web/Pages/Account/ForgotPassword.cshtml.cs

    I added a breakpoint on OnPostAsync, but it is not coming inside the method and throws the error first. So the FriendyException is not being shown at all.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can i check it remotely?

    https://zoom.us/j/92517421131?pwd=b2ZEWGFyYUJzcjBxUFF1WTBoRS9odz09

Made with ❤️ on ABP v9.1.0-preview. Updated on October 09, 2024, 14:04