ACME证书增加ZeroSSL支持

This commit is contained in:
刘祥超
2021-10-03 13:09:49 +08:00
parent 0bc8bdd841
commit 1fb491d2e1
28 changed files with 795 additions and 33 deletions

View File

@@ -28,6 +28,8 @@ Tea.context(function () {
this.createUser = function () {
let that = this
teaweb.popup("/servers/certs/acme/users/createPopup", {
height: "27em",
width: "44em",
callback: function (resp) {
teaweb.successToast("创建成功")
@@ -40,13 +42,23 @@ Tea.context(function () {
that.users.unshift({
id: acmeUser.id,
description: description,
email: acmeUser.email
email: acmeUser.email,
providerCode: acmeUser.providerCode
})
}
})
}
this.providerCode = ""
this.changeProvider = function () {
this.userId = 0
}
this.doUser = function () {
if (this.providerCode.length == 0) {
teaweb.warn("请选择一个证书服务商")
return
}
if (this.userId == 0) {
teaweb.warn("请选择一个申请证书的用户")
return