FIX: Check the confirmation result before deleting SSO record (#11816)

This commit is contained in:
David Taylor
2021-01-22 19:16:43 +00:00
committed by GitHub
parent 56294b4fba
commit cd11689446

View File

@ -601,8 +601,10 @@ export default Controller.extend(CanCheckEmails, {
I18n.t("admin.user.sso.confirm_delete"), I18n.t("admin.user.sso.confirm_delete"),
I18n.t("no_value"), I18n.t("no_value"),
I18n.t("yes_value"), I18n.t("yes_value"),
() => { (confirmed) => {
return this.model.deleteSSORecord(); if (confirmed) {
return this.model.deleteSSORecord();
}
} }
); );
}, },