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 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']);
|
||||||
|
@ -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 || '';
|
||||||
|
Loading…
Reference in New Issue
Block a user