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.
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi melmarcelo

    Can you try it in chrome incognito?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Thanks, I will check this.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

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

    Here is the change details.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can i check it remotely?

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.