diff options
Diffstat (limited to 'views/auth_callback.php')
-rw-r--r-- | views/auth_callback.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/views/auth_callback.php b/views/auth_callback.php index acdac8f..4d6ad5e 100644 --- a/views/auth_callback.php +++ b/views/auth_callback.php @@ -54,11 +54,15 @@ <h3>Token endpoint response</h3> - <p>Below is the raw response from your token endpoint (<?= $this->tokenEndpoint ?>):</p> - <div class="bs-callout bs-callout-info pre"> - <?= $this->curl_error ?> - <?= htmlspecialchars($this->response) ?> - </div> + <p>Below is the raw response from your token endpoint (<code><?= $this->tokenEndpoint ?></code>):</p> + + <?php if($this->curl_error): ?> + <div class="bs-callout bs-callout-info pre"><?= $this->curl_error ?></div> + <?php endif ?> + + <?php if($this->response): ?> + <div class="bs-callout bs-callout-info pre"><?= htmlspecialchars($this->response) ?></div> + <?php endif ?> <?php else: ?> @@ -70,4 +74,4 @@ <?php endif; ?> -</div>
\ No newline at end of file +</div> |