-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password validation not working. (2.0.5) #2681
Comments
I ran into the same issue in version 2.0.4 after upgrading from 2.0.3. Rolled back to 2.0.3 and the validation worked again. Likely a bug introduced in 2.0.4 |
@sinning @voodooattack I'd like to get this patched today. |
I'm confused, i tried a 6 letter password in both password and password confirm and no error message shows. |
Try with the passwords 'asdfasdf' or 'testtest'. |
Ohhhh. Yeah... i see.. Fixed fiddle So the issue is really simple. In It's kind of a sophie's choice because although the rule was previously named incorrectly people are already using it in code, so modifying its functionality is breaking peoples code. However people who are expecting I think the safest way is to make |
Thank you for clarifying that! However, I just tried with minLength and it still says that passwords do not match (for 'asdfasdf'). |
I copy and pasted "asdfasdf" into both fields in No validation errors were added. Can you confirm that you are using the same fiddle? If you still have issues, what OS/Browser. |
Thanks for helping out with this. Sore spot. |
You're welcome. I'm glad it's resolved. It looks like the bug isn't happening in the fiddle but still happens in my project. I'll see if I can find out anything. |
Here's another example: https://jsfiddle.net/sinning/dhm4jo0s/1/ Type in sdfsdfsdfsdfs into username or password :) |
Again you are using |
Hello, i'm going to write my question here even though i don't experience that particular problem. prompt: this.app.translate('Auth.EmptyFirstNameWarning') Can you give me an idea on how i can make something similar, or how did he implement it. Also a best practice will be nice. Thank you. |
Hello again, i came back, this time with some kind of bug ( i think ) regarding password confirmation. The validation works fine with one form, but in my situation i have a login modal, which is placed somewhere in the background. So, it is also available on the registration page. And i think there is a conflict between the 2 password fields of each form. Here is a fiddle as example. If i try to register first, the password validation will fail. If i play around with the login form, or just pop the modal, and then come back to register, it works. Am i missing something? Thanks |
@badeamihai thanks for your comment, it helped me as I was in the same situation : I had 2 fields in differents forms with same id. Making the ids unique solved the issue (they should be as per HTML spec anyway) |
I'm not sure what the cause is, but this is happening even though the passwords match.
This is the code for my form:
The text was updated successfully, but these errors were encountered: