From e59bd6365d5cb6da255a334b47e2f70db4bca1c9 Mon Sep 17 00:00:00 2001 From: guillermo Date: Wed, 8 Feb 2023 18:05:06 +0100 Subject: [PATCH] refs #4974 Minor changes --- src/main.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index f0c0676..9b3a77e 100755 --- a/src/main.js +++ b/src/main.js @@ -284,11 +284,16 @@ var App = { this.$('datasource').className = null; }; var odbcPath = this.getOdbcPath(); - this.$('user').value = this.regRead(odbcPath, 'UID') - this.$('password').value = this.regRead(odbcPath, 'PWD') + + var user = this.regRead(odbcPath, 'UID') + if (user) + this.$('user').value = this.regRead(odbcPath, 'UID') + + var password = this.regRead(odbcPath, 'PWD') + if (password) + this.$('password').value = password this.refreshLogout(); - this.$('user').focus(); }, cleanCache: function() {