0ffc866c by Jeff Balicki

commit

1 parent acf5de82
...@@ -153,7 +153,7 @@ $app->post('/disconnect', function () use ($app, $client) { ...@@ -153,7 +153,7 @@ $app->post('/disconnect', function () use ($app, $client) {
153 $client->revokeToken($token); 153 $client->revokeToken($token);
154 // Remove the credentials from the user's session. 154 // Remove the credentials from the user's session.
155 $app['session']->set('token', ''); 155 $app['session']->set('token', '');
156 // return new Response('Successfully disconnected', 200); 156 return new Response('Successfully disconnected', 200);
157 }); 157 });
158 158
159 $app->run(); 159 $app->run();
......
...@@ -131,7 +131,8 @@ var helper = (function() { ...@@ -131,7 +131,8 @@ var helper = (function() {
131 url: $(location).attr('origin') + '/signin.php/disconnect', 131 url: $(location).attr('origin') + '/signin.php/disconnect',
132 async: false, 132 async: false,
133 success: function(result) { 133 success: function(result) {
134 console.log('revoke response: ' + result); 134 alert(result);
135 console.log('revoke response:');
135 $('#authOps').hide(); 136 $('#authOps').hide();
136 $('#profile').empty(); 137 $('#profile').empty();
137 $('#visiblePeople').empty(); 138 $('#visiblePeople').empty();
...@@ -283,7 +284,8 @@ function signInClick() { ...@@ -283,7 +284,8 @@ function signInClick() {
283 url: $(location).attr('origin') + '/signin.php/disconnect', 284 url: $(location).attr('origin') + '/signin.php/disconnect',
284 async: false, 285 async: false,
285 success: function(result) { 286 success: function(result) {
286 console.log('revoke response: ' + result); 287 alert(result);
288 console.log('revoke response:');
287 $('#authOps').hide(); 289 $('#authOps').hide();
288 $('#profile').empty(); 290 $('#profile').empty();
289 $('#visiblePeople').empty(); 291 $('#visiblePeople').empty();
......