@@ -1558,6 +1558,8 @@ var App = (function(App, undefined) {
15581558 "showStatus" : settings . showStatusBar ,
15591559 "host" : ( settings . lightWallet == 1 ? settings . lightWalletHost : "http://localhost" ) ,
15601560 "port" : ( settings . lightWallet == 1 ? settings . lightWalletPort : settings . port ) ,
1561+ "auth_user" : ( settings . lightWallet == 1 ? settings . lightWalletUser : null ) ,
1562+ "auth_password" : ( settings . lightWallet == 1 ? settings . lightWalletPassword : null ) ,
15611563 "depth" : settings . depth ,
15621564 "minWeightMagnitude" : settings . minWeightMagnitude ,
15631565 "ccurlPath" : ccurlPath ,
@@ -2009,7 +2011,16 @@ var App = (function(App, undefined) {
20092011 walletType = settings . lightWallet ;
20102012 }
20112013 if ( walletType == 1 ) {
2012- var config = { "lightWallet" : 1 , "lightWalletHost" : settings . lightWalletHost , "lightWalletPort" : settings . lightWalletPort , "minWeightMagnitude" : settings . minWeightMagnitude , "testNet" : isTestNet , "minWeightMagnitudeMinimum" : minWeightMagnitudeMinimum } ;
2014+ var config = {
2015+ "lightWallet" : 1 ,
2016+ "lightWalletHost" : settings . lightWalletHost ,
2017+ "lightWalletPassword" : settings . lightWalletPassword ,
2018+ "lightWalletPort" : settings . lightWalletPort ,
2019+ "lightWalletUser" : settings . lightWalletUser ,
2020+ "minWeightMagnitude" : settings . minWeightMagnitude ,
2021+ "testNet" : isTestNet ,
2022+ "minWeightMagnitudeMinimum" : minWeightMagnitudeMinimum
2023+ } ;
20132024
20142025 var req = https . get ( 'https://iotasupport.com/providers.json?' + ( new Date ( ) . getTime ( ) ) ) ;
20152026 req . on ( 'response' , function ( res ) {
@@ -2098,6 +2109,22 @@ var App = (function(App, undefined) {
20982109 lightWalletHostChange = true ;
20992110 }
21002111 }
2112+
2113+ if ( configuration . hasOwnProperty ( "lightWalletUser" ) ) {
2114+ var lightWalletUser = configuration . lightWalletUser ;
2115+ if ( lightWalletUser != settings . lightWalletUser ) {
2116+ settings . lightWalletUser = lightWalletUser ;
2117+ lightWalletHostChange = true ;
2118+ }
2119+ }
2120+
2121+ if ( configuration . hasOwnProperty ( "lightWalletPassword" ) ) {
2122+ var lightWalletPassword = configuration . lightWalletPassword ;
2123+ if ( lightWalletPassword != settings . lightWalletPassword ) {
2124+ settings . lightWalletPassword = lightWalletPassword ;
2125+ lightWalletHostChange = true ;
2126+ }
2127+ }
21012128 } else {
21022129 if ( configuration . hasOwnProperty ( "nodes" ) ) {
21032130 var nodes = [ ] ;
0 commit comments