Fix default Common Name on create certificate

This commit is contained in:
Arjan H
2024-01-12 20:48:01 +01:00
parent dec3a1b822
commit ffb8d01ad1

View File

@@ -153,7 +153,7 @@ $(function() {
$('#o').blur(function() {
var prefix = $(this).val().split(" ")[0];
if ((prefix != "") && (($("#cn").val() == "Root CA") || ($("#cn").val() == "CA")) && ($(this).parent().parent().find(".error").length == 0)) {
if ((prefix != "") && (($("#cn").val() == "Root CA") || ($("#cn").val() == "CA")) && ($(this).parent().parent().find(".error").length == 1)) {
$("#cn").val(prefix + " " + $("#cn").val());
}
});