Stop init from returning username
This commit is contained in:
parent
bddecf8823
commit
0945cddab4
BIN
dist/main.js
vendored
BIN
dist/main.js
vendored
Binary file not shown.
@ -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']);
|
||||
|
@ -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 || '';
|
||||
|
Loading…
Reference in New Issue
Block a user