summaryrefslogtreecommitdiff
path: root/views/auth_callback.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2018-08-01 17:08:07 -0700
committerAaron Parecki <aaron@parecki.com>2018-08-01 17:08:07 -0700
commit782780234a4d5eefc692b14b4a620fc24444f2db (patch)
tree70bf1014c799cf4b71ab596016c4482db919ef47 /views/auth_callback.php
parentf860747857830229ecf0d3e309f6d49e131b7e30 (diff)
improvements to login UI, upgrades libraries
makes the login experience a bit friendlier to non-developer users
Diffstat (limited to 'views/auth_callback.php')
-rw-r--r--views/auth_callback.php16
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>