Developer forum

Forum » Templates » Extranet and forgotten password

Extranet and forgotten password


Reply

Yesterday I got several problems solved using the Extended Extranet.

 

Today I need to solve the possibility of recovery your forgotten password.

 

The solution I'm working on is: http://coachcrew.dk/

 

However, when typing an Email adress on the "recovering page" I recieve an error.

 

What should I do?


Replies

 
Reply

The feature is not supported by the module in the way you're assuming here. You should simply set up a extranet protected page that uses one of the "ForgottenPasswords" templates,

 
Reply

Oh well...

 

Should I use "login_dk_password.html" ?

 
Reply

Try.

 
Reply

Hmm, it seems a bit strange when using it:

 

http://coachcrew.dk/Default.aspx?ID=379

 
Reply

It looks just like it should, but you can always modify the template to your needs. And you can copy the HTML for the form in source view and place in any template you want, like in the login box on your frontpage, and activate the "forgot password" frature here as well.

 
Reply

Hmm, okay

 

I just find it a bit strange the way you request a forgotten password.

 

Also, I dont recieve my password.

 

I probably need to ajust something?

 
Reply

Unfortunately the Extranet is stil troubling me.

 

Using the login_dk_password.html I dont recieve my forgotten password.

 

However, it is probably not the correct template to use?

 
Angel
Reply
michael@vestjyskmarketing.dk wrote:

Unfortunately the Extranet is stil troubling me.

 

Using the login_dk_password.html I dont recieve my forgotten password.

 

However, it is probably not the correct template to use?


 

Hi Michael

 

if you include the template other places than from "Edit page", you will have to manually fill out the template tags. So in this situation change <form method="post" action="<!--@ForgotPasswordFormAction-->">
to <form method="post" action="Default.aspx"><input type="hidden" name="id" value="<!--@Global:Page.id-->" or hardcode the ID of the page.
 

 
Reply
Angel wrote:
michael@vestjyskmarketing.dk wrote:

Unfortunately the Extranet is stil troubling me.

 

Using the login_dk_password.html I dont recieve my forgotten password.

 

However, it is probably not the correct template to use?


 

Hi Michael

 

if you include the template other places than from "Edit page", you will have to manually fill out the template tags. So in this situation change <form method="post" action="<!--@ForgotPasswordFormAction-->">
to <form method="post" action="Default.aspx"><input type="hidden" name="id" value="<!--@Global:Page.id-->" or hardcode the ID of the page.
 

Thank you

 

It redirects me to the same page, however, there are no indications if the password has been mailed to me.

 
Nicolai Høeg Pedersen
Reply

Here a form that works:

 

<form name="ExtUserForm" method="post" Action="Default.aspx">
<input type="hidden" name="ID" value="<!--@Global:Page.ID-->">
<input type="hidden" name="ForgotPassword" value="True">
<input type="hidden" name="ForgotPasswordConfirm" value="Your password has been mailed.">
E-mail: <input type="text" name="username"><br />
<input type="submit" value="Send">
</form>
 

 

 
Reply

Hi Nicolai Pedersen

 

Thank you very much - works like a charm :D

 
Reply

Sorry for hi-jacking the thread, but since it seems Michael got his problem solved, i though that if i used the same code it would work for me aswell, since i need the same functionality, but it didn't.

 

On this link http://www.globel.dk/Default.aspx?ID=14469&Purge=True i have a login box where i need to recover a password.

 

I pasted in the form from the above post, but i don't recieve a password when i fill out the form.

 

Is there something in the controlpanel i need to set first maybe?.

 

</martin>

 
Reply

You need to make sure that there's noting preventing an email to leave the server like virus scan or something. You also need to make sure that solution has correct settings for SMTP in /Globalsettings/System/MailServer/Type in Globalsettings.aspx. This should be the name of the smtp service provided by the ISP hosting the solution.

 
Reply
Sorensen wrote:

You need to make sure that there's noting preventing an email to leave the server like virus scan or something. You also need to make sure that solution has correct settings for SMTP in /Globalsettings/System/MailServer/Type in Globalsettings.aspx. This should be the name of the smtp service provided by the ISP hosting the solution.

There are no problems sending mails from the Forms module, so i dont think my problem has anything to do with the smtp server.

 

Is there a template for the password reminder mail that maybe doesn't exist?

 
Reply

I also tried what was suggested in this thread, but that didn't work either http://developer.dynamicweb.dk/Forum-17061.aspx?action=ShowThread&ThreadID=1243

 

I get the popup "Your password was sent to you" but i never recieve anything.

 

The solution is hostet by you, and here are the SMTP setting for the GlobalSettings.aspx

 

    <MailServer>
      <Type>smtp</Type>
      <Server>smtp.dynamicsystems.dk</Server>
    </MailServer>

 

 
Reply

I testet a litle more, and if i protect a page with Extranet and use the password reminder from that page (template Login_dk_password.html), it works fine, i get my password in my mail.

 

Do i need to post to a page protected by Extranet?

 
Reply
mn@co3.dk wrote:

I testet a litle more, and if i protect a page with Extranet and use the password reminder from that page (template Login_dk_password.html), it works fine, i get my password in my mail.

 

Do i need to post to a page protected by Extranet?

Okay, so i solved my problem with a nasty workaround, but it works.

 

I set up my login/reminder form in a template and inserted it via the Extranet Extended module. could have used a paragraph template.

 

I created a dummy page that is protected by extranet.

I set up my login form to post to the dummy page, and now i get my password via mail.

All i had to do now was to redirect the users after they hit my dummy page, i use Javascript for that.

 

I got the funktionality i wanted. but i'm confused that i had to go through a lot of extra work since you all got it to work without using a protected page.

 

Anyways, Mission succeded :D

 

 
Reply
Hi, this sollutions works for me to. However: which mailtemplate is used? I can't seem to find it. I figured out that Control Panel Setting influence the sender but not the content. 

There is a EmailForgottenPassword.html in templates > ExtranetExtended but it's not used in any way.

Second problem is the redirect. I can't seem to work out the js redirect. Can anybody help?

Thanks in advance.
Niek
 
Nicolai Høeg Pedersen
Reply

By default the mail is sent without a template - you can specify af template though in the forgot password form:
 

<form name="ExtUserForm" method="post" Action="Default.aspx">
<input type="hidden" name="ID" value="<!--@Global:Page.ID-->">
<input type="hidden" name="ForgotPassword" value="True">
<input type="hidden" name="ForgotPasswordConfirm" value="Your password has been mailed.">
<input type="hidden" name="ForgotPasswordMailTemplate" value="ForgotPasswordMailTemplate.html">
E-mail: <input type="text" name="username"><br />
<input type="submit" value="Send">
</form>

These tags are available in the mail template:

<!--@DWExtranetUsername-->
<!--@DWExtranetPassword-->

The template should be placed in /Files/Templates/Extranet/

 
Christoffer Andersen
Reply
Hi Nicolai

Is there a tag aswell for setting the subject of the forgotten password mail?
I was thinking somethin like
<input type="hidden" name="ForgotPasswordSubject" value="my subject">


Regards

Christoffer Andersen

 
Merethe Nielsen
Reply

Hi

No there are only these parameters:

http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Modules/Users/Forgot-password-template.aspx

Kind regards,
Merethe
 
Morten Bengtson
Reply
Hi Christoffer,

To set the mail subject you need to add an input field with name "ForgotPasswordMailSubject".
<input type="hidden" name="ForgotPasswordMailSubject" value="my subject" />


 

You must be logged in to post in the forum