SSO: fix validate error

This commit is contained in:
Viktor Fomin 2022-08-02 17:41:02 +03:00
parent 270fe80679
commit 2ee692d007

View File

@ -532,6 +532,7 @@ class SsoFormStore {
try {
const res = await this.validateCertificate(data);
if (!res) throw Error("Invalid certificate");
const newCertificates = res.data;
newCertificates.map((cert) => {
this.spCertificates = [...this.spCertificates, cert];
@ -554,6 +555,7 @@ class SsoFormStore {
try {
const res = await this.validateCertificate(data);
if (!res) throw Error("Invalid certificate");
const newCertificates = res.data;
newCertificates.map((cert) => {
this.idpCertificates = [...this.idpCertificates, cert];