refs #4974 Removed remoteUser and remotePass

This commit is contained in:
Guillermo Bonet 2023-01-11 14:17:02 +01:00
parent 2ce508c6bc
commit 0f940e9d19
1 changed files with 2 additions and 13 deletions

View File

@ -123,17 +123,6 @@ var App = {
// Datasources creation
this.createDatasources();
// Check the strings values and the respective keys
var stringValues = [
'remoteURL',
'remoteUser',
'remotePass'
]
for (var i in stringValues) {
if (!this.regRead(Conf.regPath, stringValues[i]))
this.regWrite(Conf.regPath, stringValues[i], null)
}
// Upload the remote URL
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL)
@ -730,11 +719,11 @@ var App = {
* @return {string} Remote server
*/
getRemoteURL: function() {
var datasource = this.regRead(
var remoteURL = this.regRead(
'HKCU\\SOFTWARE\\Verdnatura\\vn-access',
'remoteURL'
);
return datasource || Conf.defaultRemoteURL;
return remoteURL || Conf.defaultRemoteURL;
},
/**
* Get the current datasource path