Skip to content

Commit

Permalink
Hide field
Browse files Browse the repository at this point in the history
  • Loading branch information
sahandilshan committed Nov 7, 2024
1 parent 4cb70f7 commit f045386
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1602,6 +1602,10 @@
var error_msg = $("#error-msg");
var server_error_msg = $("#server-error-msg");
if (<%=isEmailUsernameEnabled%> && <%=hideUsernameFieldWhenEmailAsUsernameIsEnabled%>) {
alphanumericUsernameUserInput.value = usernameUserInput.value;
}
if (!<%=isUsernameValidationEnabled%>) {
if (showUsernameRegexValidationStatus()) {
userName.value = alphanumericUsernameUserInput.value.trim();
Expand Down Expand Up @@ -1712,6 +1716,10 @@
var error_msg = $("#error-msg");
var server_error_msg = $("#server-error-msg");
if (<%=isEmailUsernameEnabled%> && <%=hideUsernameFieldWhenEmailAsUsernameIsEnabled%>) {
alphanumericUsernameUserInput.value = usernameUserInput.value;
}
// Username validation.
if (!<%=isUsernameValidationEnabled%>) {
if (showUsernameRegexValidationStatus()) {
Expand Down

0 comments on commit f045386

Please sign in to comment.