Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.191.84.179
function CallenableResetPasswordSetUp()
{
$g_normal_update=1;
$g_is_update_by_editing=0;
$g_formula_value='';
window.enable_proper_module="enableresetPasswordSetUp";
$('#page_main_div').load("html_modules/Setup_reset_password.html",function(){
document.getElementById('login_id').disabled=true;
document.getElementById('login_id').value=getCookie("username");
});
getDefaultHeadFooterLinks('Reset Password');
$('#display_module_name').html('Reset Password');
document.getElementById('module_name_for_save').value = 'saveResetPasswordDetails';
}
function saveResetPassword()
{
if(document.getElementById('old_password').value=='' )
{
alert('Please Enter the Valid Old Password');
document.getElementById('old_password').focus();
return;
}
else if(document.getElementById('new_password').value=='')
{
alert('Please Enter the New Password');
document.getElementById('new_password').focus();
return;
}
else if(document.getElementById('retype_new_password').value=='')
{
alert('Please Re-Enter the New Password');
document.getElementById('retype_new_password').focus();
return;
}
else if(document.getElementById('retype_new_password').value!=document.getElementById('new_password').value)
{
alert('New Password and Re-Entered password\'s are not matching');
document.getElementById('retype_new_password').focus();
return;
}
$lstr_data="&login_id="+trim(encodeURIComponent(document.getElementById('login_id').value));
$lstr_data+="&sysusrkey="+encodeURIComponent(document.getElementById('new_password').value);
$.ajax({
type: "POST",
data:$lstr_data,
url: $host_url+"resetPasswordDetails.demo",
success: resetPasswordDetailsResponse
});
}
function resetPasswordDetailsResponse($responce)
{
$responce = eval('(' + $responce + ')');
alert($responce.data);
}
|