Some corrections

This commit is contained in:
Michael 2018-05-02 21:12:48 +00:00
commit eecd1e47e4
3 changed files with 3 additions and 2 deletions

View file

@ -149,7 +149,7 @@ function settings_post(App $a)
check_form_security_token_redirectOnErr('/settings/oauth', 'settings_oauth');
$key = $_POST['remove'];
dba::delete('tokens', ['id' => $key]);
dba::delete('tokens', ['id' => $key, 'uid' => local_user()]);
goaway(System::baseUrl(true)."/settings/oauth/");
return;
}