Browse Source

Stop init from returning username

Tobias Reich 9 years ago
parent
commit
0945cddab4
3 changed files with 3 additions and 3 deletions
  1. 0 0
      dist/main.js
  2. 3 1
      php/modules/Session.php
  3. 0 2
      src/scripts/lychee.js

File diff suppressed because it is too large
+ 0 - 0
dist/main.js


+ 3 - 1
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']);

+ 0 - 2
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			|| '';

Some files were not shown because too many files changed in this diff