You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
411 B
25 lines
411 B
|
|
function init() {
|
|
$('p1').focus();
|
|
tr();
|
|
}
|
|
|
|
function apply()
|
|
{
|
|
p1 = $('p1').value;
|
|
p2 = $('p2').value;
|
|
|
|
$('p1').value = '';
|
|
$('p2').value = '';
|
|
|
|
if (p1 != p2) {
|
|
setText('msg', tr('tr_password_different'));
|
|
return;
|
|
} else {
|
|
setText('msg', tr('tr_password_changed'));
|
|
}
|
|
|
|
send('/cgi-bin/password', { func : 'set_password', pass1 : p1, pass2 : p2 }, function(data) {
|
|
setText('msg', data);
|
|
});
|
|
}
|
|
|