Recover password problem

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.
10/22/2008 8:04:09 AM
Gravatar
Total Posts 41

Recover password problem

Hi!

I have a problem with the recover password on my site. I just get a page telling me that it did not work because of the server. I have double checked the SMTP settings a bunch of times but they seems correct. The contact form works. The version used is 2.2.4.6.

So I tried this on another site I have setup and there the mail was sent, but I did not contain the password or username. Here is a snippet from the mail I recieved, it's in swedish but I guess you can see what's the problem:

Du har begärt ut ditt lösenord till LA POSADA AZUL för användaren {UserEmail}

Ditt lösenord är: {UserPassword}

Tryck här för att komma till webbplatsen:

The site is using version 2.2.6.8

Please help.

/Emil

10/22/2008 8:56:08 AM
Gravatar
Total Posts 18439

Re: Recover password problem

Hi Emil,

The password recovery feature does not use the same smtp settings that the contact form uses. It uses the settings in the system.net section of Web.config. The documentation for email configuration is here.

Not sure about the second question, it works for me.

Hope it helps,

Joe

1/29/2009 7:35:01 AM
Gravatar
Total Posts 18

Re: Recover password problem

Hello.

I get the same problem:

instead

A request was just submitted to send your MySite password for the User MyEmail@email.com
Your password is MyPassword

This is your login information for http://www.mysite.com

I get

A request was just submitted to send your MySite password for the User {UserEmail}
Your password is {UserPassword}

This is your login information for http://www.mysite.com

I know about web.config (smtp, globalization settings), xx-XX-PasswordEmailMessage.config. But any changes don't help me solve it problem.

1/29/2009 9:36:38 AM
Gravatar
Total Posts 18439

Re: Recover password problem

I will investigate and see if I can produce this problem by using non en-US browser language.

Best,

Joe

1/29/2009 10:09:47 AM
Gravatar
Total Posts 18439

Re: Recover password problem

Ok, I figured out the problem, its because the non-English tamplate files for password recovery are not correct. Originally back in the .NET 1.1 days I implemented my own password recovery feature, bt after 2.0 .NET came out and we implemented the Membership API, we switched to use the built in ASP.NET PasswordRecoveryControl. This control needed to have the template with different tags than what I was using. Apparently I fixed the english version but I never fixed the other langauge files. I will do it now, but you can fix your own files yourself to fix it immediately.

The files are located in /Data/MessageTemplates, the English version is en-US-PasswordEmailMessage.config, and the Russian language version is ru-RU-PasswordEmailMessage.config. So for example if you open the file ru-RU-PasswordEmailMessage.config in a text editor you will see this:

Зафиксирован запрос на отсылку вашего пароля к {SiteName} для учетной записи {UserEmail}
Ваш пароль - {UserPassword}

Это ваши параметры учетной записи для {SiteLink}
 

But it needs to be changed like this:

Зафиксирован запрос на отсылку вашего пароля к {SiteName} для учетной записи <% UserName %>
Ваш пароль - <% Password %>

Это ваши параметры учетной записи для {SiteLink}
 

The solution is the same for other cultures, {UserEmail} becomes <% UserName %> and {UserPassword} becomes <% Password %>

Leave the other tags as they are.

Best,

Joe

 

1/30/2009 1:59:15 AM
Gravatar
Total Posts 18

Re: Recover password problem

Good. Megathanks. :)

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