diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-02-14 21:03:39 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-02-14 21:03:39 -0800 |
commit | 8c2cab9bdd51dabefe4d7c2c92ecdc5f06ef0613 (patch) | |
tree | f2fc6bccbac14f6f719fb96a06503e641e1240f8 /views/settings.php | |
parent | 5f89ca0552ba69d94af950503bf915bc19d633b1 (diff) |
add reset login option
Diffstat (limited to 'views/settings.php')
-rw-r--r-- | views/settings.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/views/settings.php b/views/settings.php index 23a1b71..537418c 100644 --- a/views/settings.php +++ b/views/settings.php @@ -24,6 +24,14 @@ <td width="140">access token</td> <td><code style="word-break: break-word; white-space: pre-wrap;"><?= $this->user->micropub_access_token ?></code></td> </tr> + <tr> + <td> + <input type="button" class="btn btn-default" value="Reset Login" id="reset-login"> + </td> + <td> + Clicking this button will erase the access token Quill has stored for you, forget all cached endpoints, and sign you out. If you sign back in, you will start over and see the debugging screens and scope options again. + </td> + </tr> </table> @@ -110,5 +118,11 @@ $(function(){ }); }); + $("#reset-login").click(function(){ + $.post("/auth/reset", function(){ + window.location = "/"; + }); + }); + }); </script> |