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:
parent
54770780e4
commit
ff1cb9036e
2 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue