Stop init from returning username

This commit is contained in:
Tobias Reich 2015-04-17 22:50:35 +02:00
parent bddecf8823
commit 0945cddab4
3 changed files with 3 additions and 3 deletions

BIN
dist/main.js vendored

Binary file not shown.

View File

@ -39,6 +39,9 @@ class Session extends Module {
# Return settings # Return settings
$return['config'] = $this->settings; $return['config'] = $this->settings;
# Remove username and password from response
unset($return['config']['username']);
unset($return['config']['password']); unset($return['config']['password']);
# Path to Lychee for the server-import dialog # Path to Lychee for the server-import dialog
@ -63,7 +66,6 @@ class Session extends Module {
$return['status'] = LYCHEE_STATUS_LOGGEDOUT; $return['status'] = LYCHEE_STATUS_LOGGEDOUT;
# Unset unused vars # Unset unused vars
unset($return['config']['username']);
unset($return['config']['thumbQuality']); unset($return['config']['thumbQuality']);
unset($return['config']['sorting']); unset($return['config']['sorting']);
unset($return['config']['dropboxKey']); unset($return['config']['dropboxKey']);

View File

@ -18,7 +18,6 @@ lychee = {
debugMode: false, debugMode: false,
checkForUpdates:'1', checkForUpdates:'1',
username: '',
sorting: '', sorting: '',
location: '', location: '',
@ -49,7 +48,6 @@ lychee.init = function() {
// Logged in // Logged in
lychee.username = data.config.username || '';
lychee.sorting = data.config.sorting || ''; lychee.sorting = data.config.sorting || '';
lychee.dropboxKey = data.config.dropboxKey || ''; lychee.dropboxKey = data.config.dropboxKey || '';
lychee.location = data.config.location || ''; lychee.location = data.config.location || '';