Developer forum

Forum » Templates » Forgot password

Forgot password


Reply

Where can I find the template used for sending out the password reminder attached to the extranet login-function?

 

Thanks

/Morten


Replies

 
Reply
Hi Morten,
I use this:

<script language="JavaScript">

function checkform(){
if (document.ExtUserForm.ForgotPassword.checked) {
if((document.ExtUserForm.ForgotPassword.checked) && (document.ExtUserForm.Username.value.length <= 0)) {
alert('To recieve your password, please specify username.');
document.ExtUserForm.Username.focus();
return false;
}
}
else {
if(document.ExtUserForm.Username.value.length <= 0){
alert('Specify username');
document.ExtUserForm.Username.focus();
return false;
}
if(document.ExtUserForm.Password.value.length <= 0){
alert('Specify password');
document.ExtUserForm.Password.focus();
return false;
}
}

return true;
}
function ToggleForgotPassword() {
document.all("ShowPasswordText").disabled = document.ExtUserForm.ForgotPassword.checked;
document.ExtUserForm.Password.disabled = document.ExtUserForm.ForgotPassword.checked;
if (document.ExtUserForm.ForgotPassword.checked) {
document.all("UsernameText").innerText = "Specify E-mail";
}
else {
document.all("UsernameText").innerText = "Username";
}
}

var FormSubmitted = "<!--@Server:Request.sub-->"
if (FormSubmitted == "2"){
window.location.replace('default.aspx?AreaId=<!--@Global:Area.ID-->');
}

</script>
<table border="0" cellpadding=0 cellspacing=0>
<form name="ExtUserForm" method="post" Action="default.aspx?id=<!--@Global:Page.ID-->&sub=2" onSubmit="return checkform();">
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<p id="PasswPageHeader"><b><!--@TranslateTag(ForgotPassword_EnterEMail)--> :</b></p><br />
<input class="formfelt" type="Text" name="Username" style="width:200px;"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="checkbox" onclick="javascript:ToggleForgotPassword();" checked name="ForgotPassword" value="True" style="visibility:hidden;"></td>
<input type="hidden" name="ForgotPasswordConfirm" id="ForgotPasswordConfirm" value="Your password have been send to you by mail.">
<tr>
<tr>
<td colspan="2" align=right><input id="PasswPageBtn" class="loginsubmit" type="Submit" value="Get your password"></td>
</tr>
</form>
</table>  
 

 

You must be logged in to post in the forum