-
Notifications
You must be signed in to change notification settings - Fork 12
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 Field Can be Removed from Password Reusable Block #141
Comments
This is expected behavior. We have some amount of validation in place to alert users when required fields are removed but the work stalled after rocco built out a set of functions to ensure that required fields are always displayed (email/password): gocodebox/lifterlms#1589 So if you delete the password block, yes, it will still show on the frontend if it's required to make the form work. We have plans to build a backend validation API so that if a required field is removed the user is alerted. Currently it only is implemented for the email address field. I have plans to make it so that passwords are not required (users can create an account without providing a password and they'll get a password reset to confirm their account) but that has not yet been implemented. |
@thomasplevy
This is not true at the moment because of this bug I'm fixing: :D |
Ah yes... I misinterpreted the selected block in the screenshot. |
I believe improvements to the required fields API should be the solution to this. Work has been started here but I halted it after the introduction of automatic display of required fields in gocodebox/lifterlms#1589 It seems that this won't be that large an issue when gocodebox/lifterlms#1832 is fixed (@eri-trabiccolo said he's already fixed it) For the moment I'm going to leave this as low priority. The reworking of the validation API is stalled out here: #114 A possible solution would be to prevent the removal of the field from a reusable block of the specified type... but... this might be too difficult to actually implement... There's a lot of problems with the usage of reusable blocks... It seemed like the right solution but overcoming some of the shortcomings and potential difficultis is a little tiresome... But in any event, I think with the bugfix @eri-trabiccolo is working on we should be okay. We can do a LOT to prevent users from breaking their own forms and this is one case where I'm like "Oh... you deleted a field and now the field is missing? That's weird huh..." And yes, I'm saying that a bit sarcastically... |
Reproduction Steps
Expected Behavior
Actual Behavior
Error Messages / Logs
System and Environment Information
System Report
This issue has be recreated:
Browser, Device, and Operating System Information
The text was updated successfully, but these errors were encountered: