Form Validation always return invalid password in Register Page

Hi,
The form in Register Page always return "Invalid Password"
Is this a bug in Form Validation?
Please help me
Thanks

Here is the photo:
https://i.imgur.com/sRbwAWB.png

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (9)

Hi,

It seems @ is not counted as symbol. We will fix it in the next update.
In the meantime you can fix it in your end by changing the code in and add this symbol:
core/html/src/js/components/password-meter.js

var _checkChar = function() {
return /[~`!#@$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g.test(the.inputElement.value); // 20 score
}

For more info about using Metronic please check the Theme Documentation
and Video Tutorials

Regards.

I don't think so
I have tried with letter and number only
It shows the same error

https://i.imgur.com/wfNmH6V.png

Hi,

Please try other symbols it will work. If you apply the above fix and it will work as expected. You will need to add @ as char into the checkChar function.

Regards.

I have test and it still shows the same error, please check it
I don't even use @ in password

And another bugs is when password is empty, i still can submit the form

You should use symbols, upper case, lower case, and number to have a strong password and pass the validation. Please refer to the text hint below the input.

Could provide steps to reproduce this? Are you looking at this page ?

let password field empty and press submit
you can see (please wait) button
https://i.imgur.com/PpRY592.png

how can I decrease the score? I want to allow register if the score >= 40%
[solved]
I have edit this function, it works fine
r = function () {
return 40 < s.getScore();
};

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(