mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Check the confirmation result before deleting SSO record (#11816)
This commit is contained in:
parent
56294b4fba
commit
cd11689446
@ -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();
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user