Recover password issues.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/3/2007 9:42:32 AM
Gravatar
Total Posts 488

Recover password issues.

1. If I set "Allow Password Retrieval" in site settings to false and manually go to /secure/recoverpassword.aspx, I can see the page. When trying to recover the password, an unhandled exception is thrown.

2. When all the site settings are correct, but mail server settings are not set properly when I try to recover password both "password was sent" and "password not sent" messages are displayed.

5/21/2007 2:32:36 PM
Gravatar
Total Posts 18439

Re: Recover password issues.

Ok, I've coded some changes that should fix these. I'll commit in a little while.

Thanks,

Joe

5/23/2007 6:33:10 AM
Gravatar
Total Posts 488

Re: Recover password issues.

1. In general it works now. But if I know how, I can still see the same unhandled exception (need 2 tabs or browser windows):

- Turn password retrieval on in site settings
- Go to /secure/recoverpassword.aspx
- Turn password retrieval off in site settings (in a different browser window)
- Try to recover password on the page opened earlier in this scenario

 

2 - still the same problem.

5/23/2007 8:00:05 AM
Gravatar
Total Posts 18439

Re: Recover password issues.

Ok, I made a typo fixing #2 I have it fixed here and will commit soon.

For #1 can you tell me the specific exception thrown?

Thanks,

Joe

5/23/2007 8:11:20 AM
Gravatar
Total Posts 488

Re: Recover password issues.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Membership provider does not support password retrieval or reset.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80004005): Membership provider does not support password retrieval or reset.]
System.Web.UI.WebControls.PasswordRecovery.AttemptSendPasswordUserNameView() +426
System.Web.UI.WebControls.PasswordRecovery.AttemptSendPassword() +52
System.Web.UI.WebControls.PasswordRecovery.OnBubbleEvent(Object source, EventArgs e) +101
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102

5/23/2007 9:01:23 AM
Gravatar
Total Posts 18439

Re: Recover password issues.

ok, I've added code to try and catch this error and re-direct to home page instead.

Can you tell me if it works?

Thanks,

Joe

5/23/2007 9:31:35 AM
Gravatar
Total Posts 488

Re: Recover password issues.

Duplicate message is fixed.

The solution with catching the exception by message does not work in my environment: I have .Net framework language pack installed, so I have localized framework error messages.

P.S. As far as I remember, you use the same approach somewhere in global.asax. That also will fail in this case.

5/23/2007 10:06:31 AM
Gravatar
Total Posts 18439

Re: Recover password issues.

I wish they raised a specific membership exception instead of an HttpException, it doesn't seem right to catch every HttpException there so I was trying to check the message but localized error messages throws it off.

I'll ponder about it, if you have any suggestions let me know.

Changing that site setting should be an infrequent event but it would be nice to not have a user see this error just because they happened to be trying to recover their password at the very moment this setting is changed. I don't see it as a huge problem but if we can think of a reasonable easy solution it would be nice.

Thanks,

Joe

5/23/2007 10:12:54 AM
Gravatar
Total Posts 488

Re: Recover password issues.

I suppose, in this particular case you can check this setting somewhere in page_preinit so that the code never executes when the feature is disabled.

You must sign in to post in the forums. This thread is closed to new posts.