This is an automated email from the ASF dual-hosted git repository.
exceptionfactory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 97dfe2d812 NIFI-11909 Cleared Password field after login
97dfe2d812 is described below
commit 97dfe2d812a9fa8b0fcc2b1d0b7f352f656b530e
Author: Matt Gilman <[email protected]>
AuthorDate: Thu Oct 19 10:36:40 2023 -0400
NIFI-11909 Cleared Password field after login
- Clearing the password in the login form when login fails or unable to
verify access once authentication succeeds.
This closes #11909
Signed-off-by: David Handermann <[email protected]>
---
.../nifi-web/nifi-web-ui/src/main/webapp/js/nf/login/nf-login.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/login/nf-login.js
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/login/nf-login.js
index 8cfaf948c5..a29c7073e1 100644
---
a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/login/nf-login.js
+++
b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/login/nf-login.js
@@ -127,6 +127,9 @@
$('#login-message-title').text('Unable to log in');
$('#login-message').text(accessStatus.message);
+ // clear the password
+ $('#password').val('');
+
// update visibility
$('#login-container').hide();
$('#login-submission-container').hide();
@@ -137,6 +140,9 @@
$('#login-message-title').text('Unable to log in');
$('#login-message').text(xhr.responseText);
+ // clear the password
+ $('#password').val('');
+
// update visibility
$('#login-container').hide();
$('#login-submission-container').hide();
@@ -149,6 +155,9 @@
dialogContent: nfCommon.escapeHtml(xhr.responseText)
});
+ // clear the password
+ $('#password').val('');
+
// update the form visibility
$('#login-submission-container').show();
$('#login-progress-container').hide();