Fix the Zapier oAuth return url to the new one (#7215)

pull/7304/head
Bradley Hilton 9 years ago committed by Diego Sampaio
parent 1c87c92c17
commit c5ffd450b0
No known key found for this signature in database
GPG Key ID: E060152B30502562
  1. 2
      packages/rocketchat-oauth2-server-config/oauth/server/default-services.js
  2. 10
      server/startup/migrations/v098.js

@ -5,7 +5,7 @@ if (!RocketChat.models.OAuthApps.findOne('zapier')) {
active: true,
clientId: 'zapier',
clientSecret: 'RTK6TlndaCIolhQhZ7_KHIGOKj41RnlaOq_o-7JKwLr',
redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/App32270API/',
redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/RocketChatDevAPI/',
_createdAt: new Date,
_createdBy: {
_id: 'system',

@ -0,0 +1,10 @@
RocketChat.Migrations.add({
version: 98,
up() {
RocketChat.models.OAuthApps.update({ _id: 'zapier' }, {
$set: {
redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/RocketChatDevAPI/'
}
});
}
});
Loading…
Cancel
Save