Skip to content
Snippets Groups Projects
Commit b67e4cec authored by Marcos Vinicius Spessatto Defendi's avatar Marcos Vinicius Spessatto Defendi
Browse files

Remove "secret" from REST endpoint /settings.oauth response

parent 981e1509
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ RocketChat.API.v1.addRoute('settings.public', { authRequired: false }, {
RocketChat.API.v1.addRoute('settings.oauth', { authRequired: false }, {
get() {
const mountOAuthServices = () => {
const oAuthServicesEnabled = ServiceConfiguration.configurations.find({}).fetch();
const oAuthServicesEnabled = ServiceConfiguration.configurations.find({}, { fields: { secret: 0 } }).fetch();
return oAuthServicesEnabled.map((service) => {
if (service.custom) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment