Web: Client: Settings: SSO: fix generate cert
This commit is contained in:
parent
ce7e554927
commit
a5ecd54dff
@ -288,8 +288,8 @@ class SsoFormStore {
|
||||
try {
|
||||
this.isGeneratedCertificate = true;
|
||||
|
||||
const response = await generateCerts();
|
||||
this.setGeneratedCertificate(response);
|
||||
const res = await generateCerts();
|
||||
this.setGeneratedCertificate(res.data);
|
||||
|
||||
this.isGeneratedCertificate = false;
|
||||
} catch (err) {
|
||||
@ -542,7 +542,8 @@ class SsoFormStore {
|
||||
];
|
||||
|
||||
try {
|
||||
const newCertificates = await this.validateCertificate(data);
|
||||
const res = await this.validateCertificate(data);
|
||||
const newCertificates = res.data;
|
||||
newCertificates.map((cert) => {
|
||||
this[`${prefix}_certificates`] = [
|
||||
...this[`${prefix}_certificates`],
|
||||
|
Loading…
Reference in New Issue
Block a user