mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: hide sso email behind a button click and log views (#11186)
This commit is contained in:
@ -19,6 +19,7 @@ export default Controller.extend(CanCheckEmails, {
|
||||
customGroupIdsBuffer: null,
|
||||
availableGroups: null,
|
||||
userTitleValue: null,
|
||||
ssoExternalEmail: null,
|
||||
|
||||
showBadges: setting("enable_badges"),
|
||||
hasLockedTrustLevel: notEmpty("model.manual_locked_trust_level"),
|
||||
@ -339,5 +340,15 @@ export default Controller.extend(CanCheckEmails, {
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
checkSsoEmail() {
|
||||
return ajax(userPath(`${this.model.username_lower}/sso-email.json`), {
|
||||
data: { context: window.location.pathname },
|
||||
}).then((result) => {
|
||||
if (result) {
|
||||
this.set("ssoExternalEmail", result.email);
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user