-
Notifications
You must be signed in to change notification settings - Fork 7
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
[2.x] Require an actual login #121
Conversation
Is this for v2 or v3? |
This was for v2, I'll update the branch and check if v3 also needs it in a moment :) |
The base branch was changed.
v3: #134 |
Any info? |
Copied from the PR mentioned at the start: "Previously, you could just type in any random password in the password box and it would validate without the need to log in, allowing people to actually try placing an order on an existing account without logging in. This fixes that bug." |
And why do we need a checkbox for that? How does it work and look? |
Right, I'll elaborate on that: As long as the password field is visible, the form should never validate (note, in v3 this can mean you're creating an account so there's a v-if on it to check that there). We can't (really) do this with just the textbox itself, we can only make the textbox required which isn't enough. So, the simplest solution is that we can add an invisible checkbox that can never be checked, give it a custom validation message, and then give it the bounding box of the password field so that the validation message looks like it's just coming from the password field. |
Ah nice! Thanks for the info 🚀 |
see: rapidez/core#613