summaryrefslogtreecommitdiffstats
path: root/apps/oauth2/js
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-05-12 14:55:30 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-05-18 20:49:07 +0200
commitbb19b3709706b49cdae65c77d28ab89ad3679951 (patch)
treea6343e37ef44d8d405db3252c53121841572679b /apps/oauth2/js
parentbaa8490f44b18ef10c46a117f2143b80f18455bb (diff)
downloadnextcloud-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/js')
-rw-r--r--apps/oauth2/js/setting-admin.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/oauth2/js/setting-admin.js b/apps/oauth2/js/setting-admin.js
new file mode 100644
index 00000000000..be774fd720a
--- /dev/null
+++ b/apps/oauth2/js/setting-admin.js
@@ -0,0 +1,16 @@
+
+$(document).ready(function () {
+
+ $('.show-oauth-credentials').click(function() {
+ var row = $(this).parent();
+ var code = $(row).find('code');
+ if(code.text() === '****') {
+ code.text(row.data('value'));
+ $(this).css('opacity', 0.9);
+ } else {
+ code.text('****');
+ $(this).css('opacity', 0.3);
+ }
+ })
+
+});