From bb19b3709706b49cdae65c77d28ab89ad3679951 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 12 May 2017 14:55:30 +0200 Subject: hide client secret by default Signed-off-by: Bjoern Schiessle --- apps/oauth2/js/setting-admin.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apps/oauth2/js/setting-admin.js (limited to 'apps/oauth2/js/setting-admin.js') 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); + } + }) + +}); -- cgit v1.2.3 From d90eba3f851711892983aecd643fca431b97397e Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 18 May 2017 16:39:28 +0200 Subject: Fix style issues pointed out in review Signed-off-by: Lukas Reschke --- apps/oauth2/appinfo/routes.php | 2 +- apps/oauth2/js/setting-admin.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/oauth2/js/setting-admin.js') diff --git a/apps/oauth2/appinfo/routes.php b/apps/oauth2/appinfo/routes.php index 808f2a22395..84b1336e37e 100644 --- a/apps/oauth2/appinfo/routes.php +++ b/apps/oauth2/appinfo/routes.php @@ -42,4 +42,4 @@ return [ 'verb' => 'POST' ], ], -]; \ No newline at end of file +]; diff --git a/apps/oauth2/js/setting-admin.js b/apps/oauth2/js/setting-admin.js index be774fd720a..53163be1148 100644 --- a/apps/oauth2/js/setting-admin.js +++ b/apps/oauth2/js/setting-admin.js @@ -1,4 +1,3 @@ - $(document).ready(function () { $('.show-oauth-credentials').click(function() { -- cgit v1.2.3