Hi,
I am encountering an error when I perform forgot password.
Steps to Produce:
- Go to https://localhost:44332/Account/ForgotPassword
- Type in a valid email address (tried a randon email as well, same result)
- Hit Submit
- 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:
- I logged in successfully using any user.
- Log out.
- Go to Forgot Password, enter valid email address and hit Submit.
- 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)
-
0
Hi,
I tried to add a Tenant before clicking Submit in Forgot Password page and the exception was not thrown anymore.
Might help.
Regards.
-
0
hi melmarcelo
Can you try it in chrome incognito?
-
0
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.
-
0
hi
Thanks, I will check this.
-
0
-
0
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.
-
0
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.
-
0
Can i check it remotely?
https://zoom.us/j/92517421131?pwd=b2ZEWGFyYUJzcjBxUFF1WTBoRS9odz09