mirror of https://github.com/apache/nifi.git
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:
parent
f2822a6bfb
commit
97dfe2d812
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue