|
@@ -59,12 +59,12 @@
|
|
|
$(customFields[2]).removeClass('has-error has-warning has-success');
|
|
$(customFields[2]).removeClass('has-error has-warning has-success');
|
|
|
if (pwlengthOK && numericOK && symbolsOK && upperlowerOK) {
|
|
if (pwlengthOK && numericOK && symbolsOK && upperlowerOK) {
|
|
|
$(customFields[2]).addClass('has-success');
|
|
$(customFields[2]).addClass('has-success');
|
|
|
- $(customFields[2]).css('background-color', '#0f03');;
|
|
|
|
|
|
|
+ $(customFields[2]).css('background-color', '#0f03');
|
|
|
$(customFields[3]).prop("disabled",false);
|
|
$(customFields[3]).prop("disabled",false);
|
|
|
$("#hintHead").text('');
|
|
$("#hintHead").text('');
|
|
|
} else {
|
|
} else {
|
|
|
$(customFields[2]).addClass('has-error');
|
|
$(customFields[2]).addClass('has-error');
|
|
|
- $(customFields[2]).css('background-color', '#f003');;
|
|
|
|
|
|
|
+ $(customFields[2]).css('background-color', '#f003');
|
|
|
$(customFields[3]).prop("disabled",true);
|
|
$(customFields[3]).prop("disabled",true);
|
|
|
$("#hintHead").text('Tipps für ein gutes Passwort');
|
|
$("#hintHead").text('Tipps für ein gutes Passwort');
|
|
|
}
|
|
}
|
|
@@ -73,14 +73,20 @@
|
|
|
if ($(customFields[2]).val() == $(customFields[3]).val()) {
|
|
if ($(customFields[2]).val() == $(customFields[3]).val()) {
|
|
|
$("#btnCompleteProductConfig").prop("disabled",false);
|
|
$("#btnCompleteProductConfig").prop("disabled",false);
|
|
|
$(customFields[3]).addClass('has-success');
|
|
$(customFields[3]).addClass('has-success');
|
|
|
- $(customFields[3]).css('background-color', '#0f03');;
|
|
|
|
|
|
|
+ $(customFields[3]).css('background-color', '#0f03');
|
|
|
$("#hintHead").text('');
|
|
$("#hintHead").text('');
|
|
|
} else {
|
|
} else {
|
|
|
$("#btnCompleteProductConfig").prop("disabled",true);
|
|
$("#btnCompleteProductConfig").prop("disabled",true);
|
|
|
$(customFields[3]).addClass('has-error');
|
|
$(customFields[3]).addClass('has-error');
|
|
|
- $(customFields[3]).css('background-color', '#f003');;
|
|
|
|
|
|
|
+ $(customFields[3]).css('background-color', '#f003');
|
|
|
$("#hintHead").text('Passworte stimmen nicht überein!');
|
|
$("#hintHead").text('Passworte stimmen nicht überein!');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ buttonComplete = $("#btnCompleteProductConfig");
|
|
|
|
|
+ $(buttonComplete).click(function () {
|
|
|
|
|
+ if (($(customFields[0]).val() == 'root' || $(customFields[0]).val() == '') && ($(customFields[1]).val() == '')){
|
|
|
|
|
+ alert('Ohne validen SSH Public Key können Sie sich als "root" nur über die Serverkonsole im Kundenportal, nicht aber remote via SSH an Ihrem Server anmelden!');
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|