@@ -1539,6 +1539,8 @@ var App = (function(App, undefined) {
15391539 "showStatus" : settings . showStatusBar ,
15401540 "host" : ( settings . lightWallet == 1 ? settings . lightWalletHost : "http://localhost" ) ,
15411541 "port" : ( settings . lightWallet == 1 ? settings . lightWalletPort : settings . port ) ,
1542+ "auth_user" : ( settings . lightWallet == 1 ? settings . lightWalletUser : null ) ,
1543+ "auth_password" : ( settings . lightWallet == 1 ? settings . lightWalletPassword : null ) ,
15421544 "depth" : settings . depth ,
15431545 "minWeightMagnitude" : settings . minWeightMagnitude ,
15441546 "ccurlPath" : ccurlPath ,
@@ -1974,7 +1976,16 @@ var App = (function(App, undefined) {
19741976 walletType = settings . lightWallet ;
19751977 }
19761978 if ( walletType == 1 ) {
1977- var config = { "lightWallet" : 1 , "lightWalletHost" : settings . lightWalletHost , "lightWalletPort" : settings . lightWalletPort , "minWeightMagnitude" : settings . minWeightMagnitude , "testNet" : isTestNet , "minWeightMagnitudeMinimum" : minWeightMagnitudeMinimum } ;
1979+ var config = {
1980+ "lightWallet" : 1 ,
1981+ "lightWalletHost" : settings . lightWalletHost ,
1982+ "lightWalletPassword" : settings . lightWalletPassword ,
1983+ "lightWalletPort" : settings . lightWalletPort ,
1984+ "lightWalletUser" : settings . lightWalletUser ,
1985+ "minWeightMagnitude" : settings . minWeightMagnitude ,
1986+ "testNet" : isTestNet ,
1987+ "minWeightMagnitudeMinimum" : minWeightMagnitudeMinimum
1988+ } ;
19781989
19791990 var req = http . get ( 'http://provider.iota.org/list.json?' + ( new Date ( ) . getTime ( ) ) ) ;
19801991 req . on ( 'response' , function ( res ) {
@@ -2063,6 +2074,22 @@ var App = (function(App, undefined) {
20632074 lightWalletHostChange = true ;
20642075 }
20652076 }
2077+
2078+ if ( configuration . hasOwnProperty ( "lightWalletUser" ) ) {
2079+ var lightWalletUser = configuration . lightWalletUser ;
2080+ if ( lightWalletUser != settings . lightWalletUser ) {
2081+ settings . lightWalletUser = lightWalletUser ;
2082+ lightWalletHostChange = true ;
2083+ }
2084+ }
2085+
2086+ if ( configuration . hasOwnProperty ( "lightWalletPassword" ) ) {
2087+ var lightWalletPassword = configuration . lightWalletPassword ;
2088+ if ( lightWalletPassword != settings . lightWalletPassword ) {
2089+ settings . lightWalletPassword = lightWalletPassword ;
2090+ lightWalletHostChange = true ;
2091+ }
2092+ }
20662093 } else {
20672094 if ( configuration . hasOwnProperty ( "nodes" ) ) {
20682095 var nodes = [ ] ;
0 commit comments