Repository: qpid-dispatch Updated Branches: refs/heads/master 63aae8647 -> f99623ed1
DISPATCH-1003 Prompt for username / password on connect page. Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/f99623ed Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/f99623ed Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/f99623ed Branch: refs/heads/master Commit: f99623ed1615c2cb1743e48e719d3f8a690e8181 Parents: 63aae86 Author: Ernest Allen <eal...@redhat.com> Authored: Thu May 17 17:10:36 2018 -0400 Committer: Ernest Allen <eal...@redhat.com> Committed: Thu May 17 17:10:36 2018 -0400 ---------------------------------------------------------------------- console/stand-alone/plugin/html/qdrConnect.html | 18 ++++++++++++++++++ console/stand-alone/plugin/js/qdrSettings.js | 4 ++++ 2 files changed, 22 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/f99623ed/console/stand-alone/plugin/html/qdrConnect.html ---------------------------------------------------------------------- diff --git a/console/stand-alone/plugin/html/qdrConnect.html b/console/stand-alone/plugin/html/qdrConnect.html index 5a4399b..b3500c4 100644 --- a/console/stand-alone/plugin/html/qdrConnect.html +++ b/console/stand-alone/plugin/html/qdrConnect.html @@ -22,6 +22,12 @@ under the License. margin-top: 4em; } + .login:after { + content: ''; + display: block; + clear: both; +} + </style> <div class="row-fluid" ng-controller="QDR.SettingsController"> <div class="login" ng-hide="connecting"> @@ -51,6 +57,18 @@ under the License. <span ng-show="settings.port.$error.range">Must be 1 through 65535</span> </div> </div> + <div class="form-group"> + <label tabindex="-1" class="col-md-2 control-label" title="User name" for="username">User name: </label> + <div class="col-md-6"> + <input tabindex="3" id="username" type="text" placeholder="username" tooltip="User name" ng-model="formEntity.username" name="username" title="User name"> + </div> + </div> + <div class="form-group"> + <label tabindex="-1" class="col-md-2 control-label" title="Password" for="password">Password: </label> + <div class="col-md-6"> + <input tabindex="4" id="password" type="password" placeholder="password" tooltip="Password" ng-model="formEntity.password" name="password" title="Password"> + </div> + </div> <!-- <div class="form-group"> <label tabindex="-1" class="col-md-2 control-label" title="Whether or not the connection should be started as soon as you log in" for="autostart">Autostart: </label> http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/f99623ed/console/stand-alone/plugin/js/qdrSettings.js ---------------------------------------------------------------------- diff --git a/console/stand-alone/plugin/js/qdrSettings.js b/console/stand-alone/plugin/js/qdrSettings.js index 7f34758..d53123f 100644 --- a/console/stand-alone/plugin/js/qdrSettings.js +++ b/console/stand-alone/plugin/js/qdrSettings.js @@ -45,10 +45,14 @@ var QDR = (function(QDR) { password: '', autostart: false }; + $scope.formEntity.password = ''; $scope.$watch('formEntity', function(newValue, oldValue) { if (newValue !== oldValue) { + let pass = newValue.password; + newValue.password = ''; localStorage[QDR.SETTINGS_KEY] = angular.toJson(newValue); + newValue.password = pass; } }, true); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org