From 0945cddab4494c8cbc61f1783590ab30052b84ae Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 17 Apr 2015 22:50:35 +0200 Subject: [PATCH] Stop init from returning username --- dist/main.js | Bin 173438 -> 173388 bytes php/modules/Session.php | 4 +++- src/scripts/lychee.js | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/main.js b/dist/main.js index bb73d2a4d6e056cd9fb56c50c216fc39aeb86399..76ad8aee8e2a1ac7595e309ec07b759a1921db47 100644 GIT binary patch delta 45 zcmV+|0Mh^d$_mWN3V^f$RP~o&^#Rdf delta 88 zcmX?eitFDgu7)j)Az!&li&Km85_40nl%@xLWxOX33_0c6A?asU7T diff --git a/php/modules/Session.php b/php/modules/Session.php index 76e62d4..6bb32bc 100755 --- a/php/modules/Session.php +++ b/php/modules/Session.php @@ -39,6 +39,9 @@ class Session extends Module { # Return settings $return['config'] = $this->settings; + + # Remove username and password from response + unset($return['config']['username']); unset($return['config']['password']); # Path to Lychee for the server-import dialog @@ -63,7 +66,6 @@ class Session extends Module { $return['status'] = LYCHEE_STATUS_LOGGEDOUT; # Unset unused vars - unset($return['config']['username']); unset($return['config']['thumbQuality']); unset($return['config']['sorting']); unset($return['config']['dropboxKey']); diff --git a/src/scripts/lychee.js b/src/scripts/lychee.js index 23157a1..04123ac 100644 --- a/src/scripts/lychee.js +++ b/src/scripts/lychee.js @@ -18,7 +18,6 @@ lychee = { debugMode: false, checkForUpdates:'1', - username: '', sorting: '', location: '', @@ -49,7 +48,6 @@ lychee.init = function() { // Logged in - lychee.username = data.config.username || ''; lychee.sorting = data.config.sorting || ''; lychee.dropboxKey = data.config.dropboxKey || ''; lychee.location = data.config.location || '';