We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab2d33 commit 862c341Copy full SHA for 862c341
SourceGithub/SourceGithub.php
@@ -206,6 +206,13 @@ public function update_repo( $p_repo ) {
206
$f_hub_webhook_secret = gpc_get_string( 'hub_webhook_secret' );
207
$f_master_branch = gpc_get_string( 'master_branch' );
208
209
+ # Clear the access token if client id and secret changed
210
+ if( $p_repo->info['hub_app_client_id'] != $f_hub_app_client_id
211
+ || $p_repo->info['hub_app_secret'] != $f_hub_app_secret
212
+ ) {
213
+ unset($p_repo->info['hub_app_access_token']);
214
+ }
215
+
216
$this->validate_branch_list( $f_master_branch );
217
218
$p_repo->info['hub_username'] = $f_hub_username;
0 commit comments