Skip to content

Commit

Permalink
NIFI-11909 Cleared Password field after login
Browse files Browse the repository at this point in the history
- 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>
(cherry picked from commit 97dfe2d)
  • Loading branch information
mcgilman authored and exceptionfactory committed Oct 19, 2023
1 parent fd6e023 commit 2c019bb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit 2c019bb

Please sign in to comment.