Skip to content
Snippets Groups Projects
Commit 53a0f49a authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

add debugging

parent bbb92342
No related branches found
No related tags found
No related merge requests found
......@@ -66,15 +66,18 @@ class OauthController extends PluginController
curl_setopt($r, CURLOPT_POSTFIELDS, $payload);
$json = curl_exec($r);
$response = curl_exec($r);
curl_close($r);
$json = json_decode($json, true);
$json = json_decode($response, true);
if ($json['error']) {
PageLayout::postError(_("Authentifizierungsfehler:")." ".$json['error']);
$this->redirect(URLHelper::getURL("dispatch.php/files/index"));
} else {
if ($response === false) {
PageLayout::postError(_("Fehler beim Abrufen der OAuth-Token:"), array(curl_error($r)));
}
if (false) {
var_dump($json);
$this->render_nothing();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment