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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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