mirror of https://github.com/certd/certd
chore:
parent
86e521b9aa
commit
f7bf5c9328
|
@ -44,7 +44,7 @@
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-button type="primary" size="large" html-type="submit" :loading="loading" class="login-button">登录</a-button>
|
<a-button type="primary" size="large" html-type="submit" :loading="loading" class="login-button">登录</a-button>
|
||||||
|
|
||||||
<div class="mt-2"><a href="https://certd.docmirror.cn/guide/use/forgotpasswd/" target="_blank">忘记管理员密码?</a></div>
|
<div v-if="!settingStore.isComm" class="mt-2"><a href="https://certd.docmirror.cn/guide/use/forgotpasswd/" target="_blank">忘记管理员密码?</a></div>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|
||||||
<a-form-item class="user-login-other">
|
<a-form-item class="user-login-other">
|
||||||
|
@ -178,6 +178,7 @@ export default defineComponent({
|
||||||
function hasRegisterTypeEnabled() {
|
function hasRegisterTypeEnabled() {
|
||||||
return sysPublicSettings.registerEnabled && (sysPublicSettings.usernameRegisterEnabled || sysPublicSettings.emailRegisterEnabled);
|
return sysPublicSettings.registerEnabled && (sysPublicSettings.usernameRegisterEnabled || sysPublicSettings.emailRegisterEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
loading,
|
loading,
|
||||||
formState,
|
formState,
|
||||||
|
@ -193,6 +194,7 @@ export default defineComponent({
|
||||||
twoFactor,
|
twoFactor,
|
||||||
handleTwoFactorSubmit,
|
handleTwoFactorSubmit,
|
||||||
verifyCodeInputRef,
|
verifyCodeInputRef,
|
||||||
|
settingStore,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -53,6 +53,21 @@ export class FarcdnAccess extends BaseAccess {
|
||||||
accessKey!: string;
|
accessKey!: string;
|
||||||
|
|
||||||
|
|
||||||
|
@AccessInput({
|
||||||
|
title: "HttpProxy",
|
||||||
|
component: {
|
||||||
|
placeholder: "http://192.168.x.x:10811",
|
||||||
|
component: {
|
||||||
|
name: "a-input",
|
||||||
|
vModel: "value"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
encrypt: false,
|
||||||
|
required: true
|
||||||
|
})
|
||||||
|
httpProxy!: string;
|
||||||
|
|
||||||
|
|
||||||
@AccessInput({
|
@AccessInput({
|
||||||
title: "测试",
|
title: "测试",
|
||||||
component: {
|
component: {
|
||||||
|
@ -139,6 +154,7 @@ export class FarcdnAccess extends BaseAccess {
|
||||||
keyData: req.cert.key,
|
keyData: req.cert.key,
|
||||||
isOn: true,
|
isOn: true,
|
||||||
isCA: false,
|
isCA: false,
|
||||||
|
serverName: oldCert.serverName,
|
||||||
commonNames: [certReader.getMainDomain()],
|
commonNames: [certReader.getMainDomain()],
|
||||||
dnsNames: certReader.getAltNames(),
|
dnsNames: certReader.getAltNames(),
|
||||||
timeBeginAt: detail.notBefore,
|
timeBeginAt: detail.notBefore,
|
||||||
|
@ -163,7 +179,8 @@ export class FarcdnAccess extends BaseAccess {
|
||||||
url: req.url,
|
url: req.url,
|
||||||
baseURL:this.endpoint,
|
baseURL:this.endpoint,
|
||||||
method: "POST",
|
method: "POST",
|
||||||
data: params
|
data: params,
|
||||||
|
httpProxy: this.httpProxy||undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.code === "200") {
|
if (res.code === "200") {
|
||||||
|
|
Loading…
Reference in New Issue