diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2017-05-12 14:55:30 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-05-18 20:49:07 +0200 |
commit | bb19b3709706b49cdae65c77d28ab89ad3679951 (patch) | |
tree | a6343e37ef44d8d405db3252c53121841572679b /apps/oauth2/templates | |
parent | baa8490f44b18ef10c46a117f2143b80f18455bb (diff) | |
download | nextcloud-server-bb19b3709706b49cdae65c77d28ab89ad3679951.tar.gz nextcloud-server-bb19b3709706b49cdae65c77d28ab89ad3679951.zip |
hide client secret by default
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/oauth2/templates')
-rw-r--r-- | apps/oauth2/templates/admin.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/oauth2/templates/admin.php b/apps/oauth2/templates/admin.php index f5b8532e6b1..9c09499add3 100644 --- a/apps/oauth2/templates/admin.php +++ b/apps/oauth2/templates/admin.php @@ -22,6 +22,9 @@ $urlGenerator = \OC::$server->getURLGenerator(); $themingDefaults = \OC::$server->getThemingDefaults(); +script('oauth2', 'setting-admin'); +style('oauth2', 'setting-admin'); + /** @var array $_ */ /** @var \OCA\OAuth2\Db\Client[] $clients */ $clients = $_['clients']; @@ -47,7 +50,7 @@ $clients = $_['clients']; <td><?php p($client->getName()); ?></td> <td><?php p($client->getRedirectUri()); ?></td> <td><code><?php p($client->getClientIdentifier()); ?></code></td> - <td><code><?php p($client->getSecret()); ?></code></td> + <td data-value="<?php p($client->getSecret()); ?>"><code>****</code><img class='show-oauth-credentials' src="<?php p($urlGenerator->imagePath('core', 'actions/toggle.svg'));?>"/></td> <td> <form id="form-inline" class="delete" action="<?php p($urlGenerator->linkToRoute('oauth2.Settings.deleteClient', ['id' => $client->getId()])); ?>" method="POST"> <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" /> @@ -67,4 +70,4 @@ $clients = $_['clients']; <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" /> <input type="submit" class="button" value="<?php p($l->t('Add')); ?>"> </form> -</div>
\ No newline at end of file +</div> |