1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 07:39:43 +02:00

Don't return actual token to JS for trello

This commit is contained in:
Elliott Stoneham 2016-07-08 15:29:01 +01:00
parent 54770780e4
commit ff1cb9036e
2 changed files with 4 additions and 2 deletions

View file

@ -59,7 +59,7 @@ export default Ember.Component.extend(SectionMixin, NotifierMixin, TooltipMixin,
this.get('sectionService').fetch(page, "config", {})
.then(function (s) {
self.set('appKey', s.appKey);
self.set('config.token', s.token); // the user's own token, drawn from the DB
self.set('config.token', s.token); // the user's own token has been stored in the DB
// On auth callback capture user token
let hashToken = window.location.hash;

View file

@ -127,7 +127,9 @@ func (*Provider) Command(ctx *provider.Context, w http.ResponseWriter, r *http.R
Token string `json:"token"`
}
ret.AppKey = config.AppKey
ret.Token = config.Token
if config.Token != "" {
ret.Token = provider.SecretReplacement
}
provider.WriteJSON(w, ret)
return