mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: Check the confirmation result before deleting SSO record (#11816)
This commit is contained in:
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user