Project

General

Profile

Bug #20728 » superchallange_pass.js

Administrator Admin, 2009-07-27 09:59

 
// JavaScript: newloginbox v. 3.0.1

function superchallenge_pass(form) {
var pass = form.pass.value;
if (pass) {
var enc_pass = MD5(pass);
var str = form.user.value+\":\"+enc_pass+\":\"+form.challenge.value;
form.pass.value = MD5(str);
return true;
} else {
return false;
}
}

var pw_change = 1;
function enc_form(form) {
var pass = form['FE[fe_users][password]'].value;
var pass_again = form['FE[fe_users][password_again]'].value;
if (pass == '') {
alert('Versuchen Sie es bitte noch einmal.');
form['FE[fe_users][password]'].select();
form['FE[fe_users][password]'].focus();
return false;
}
if (pass != pass_again) {
alert('Sie m?ssen Ihr Passwort zweimal eingeben.');
form['FE[fe_users][password]'].select();
form['FE[fe_users][password]'].focus();
return false;
}
if (pass.length == 32) {
return true;
}
if (pw_change) {
var enc_pass = MD5(pass);
form['FE[fe_users][password]'].value = enc_pass;
form['FE[fe_users][password_again]'].value = enc_pass;
return true;
}
}
(2-2/2)