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 <exceptionfactory@apache.org>
This commit is contained in:
Matt Gilman 2023-10-19 10:36:40 -04:00 committed by exceptionfactory
parent f2822a6bfb
commit 97dfe2d812
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
1 changed files with 9 additions and 0 deletions

View File

@ -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();