Some corrections

This commit is contained in:
Michael
2018-05-02 21:12:48 +00:00
committed by Roland Häder
parent 8b775d48f9
commit 3bb5a416f8
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;
}