forked from freifunk-franken/firmware
25 lines
463 B
JavaScript
25 lines
463 B
JavaScript
|
|
function init() {
|
|
$("p1").focus();
|
|
}
|
|
|
|
function apply()
|
|
{
|
|
p1 = $('p1').value;
|
|
p2 = $('p2').value;
|
|
|
|
$('p1').value = "";
|
|
$('p2').value = "";
|
|
|
|
if(p1 != p2) {
|
|
setText('msg', "(E) Die Passwörter sind nicht identisch.");
|
|
return;
|
|
} else {
|
|
setText('msg', "(I) Das Passwort wird geändert. Bitte die Seite neu laden.");
|
|
}
|
|
|
|
send("/cgi-bin/password", { func : "set_password", pass1 : p1, pass2 : p2 }, function(data) {
|
|
setText('msg', data);
|
|
});
|
|
}
|