-
Notifications
You must be signed in to change notification settings - Fork 121
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
Input Validation #519
Input Validation #519
Conversation
I added the parse function into the InputItem. ~ Marius |
Yes I know, sry. I think it's a bit too late^^ |
Don't worry it's not going to dramatically decrease performance. But every little thing counts, that's what makes coding interesting. V4.3 is released btw.. hopefully I didn't introduce too many new bugs. Fingers crossed :) |
Yes, I also like |
Hey @skipperbent, ~ Marius |
Hi Marius. I've been busy with a new exciting project that takes much of my time lately. Hope you're doing well - I will look into your code later today I promise 👍 / Simon |
Okay, thank you! |
I'm working on a Umbraco clone for PHP. It takes a lot of time, it's a huge project. I will release it on GitHub as soon as it has all the features required for launch. Still need multi-language, auto installer and a working default-theme. |
I created my own CMS for my customers and I know how mutch work something like this coasts! This looks nice and I'm looking forward to see more of it^^ |
Maybe I can later add some features like 2-FA app and 2-FA Keys. Added this in my own and I have to say that this makes it way more saver^^ |
Yes, it's so much work. But I'm getting there... The system will allow developers to create their own classes, use dependencies from composer and design their projects in the fashion of their liking. Each node has a "template" which is just a class that inherits a special interface. It can be defined on the node-type what template can be chosen on that given type. Each node-type has defined what data-types are available like "text-field", "richtext editor" etc. Data-types are editor classes that can be rendered when editing a page. Same goes for media and members. If you want pages you just call the alias of the nodes-you want, for instance $slider = ModelPage::filterType('slider')->first();
foreach($slider->getChildrenOfType('slide')->all() as $slide) {
$title = $slide->getTitle();
$text = $slide->getData('text');
$image = $slide->getData('image');
} Data elements are defined by the data-types, which is something a developer choses. I understand if it sounds confusing for someone that haven't used Umbraco, but when everything is nodes it makes it really simple to working with the content. 2FA would be nice, I'm looking forward to sharing the project with you 😄 |
Do you think you can do it today or should I expect your feedback next weekend? I just need basic feedback of my PRs. I think my #515 is ready, but the input validation and input handler needs some feedback if you want more functionality or some changes. I will delete my #511 later today, because you included the IP whitelist already. Or should I try to include the device whitelist your way? ~ Marius |
Hey @skipperbent, ~ Marius |
Hello! Thanks for the great package. There's any plans to include this feature any time soon? I'd love to have this on a project I'm working on right now. |
Hello, I will close this PR, because we are searching for a better alternative in PR #607. ~ Marius |
Hey,
This pull requests contains a validation for InputItems and a
requireParameters
for the InputHandler. The developer can enable and disable the throwing of errors for the Input validation inRouter::setValidationErrors
. I maby would change this with the time to$input_errors
and work more with errors in the InputHandler and add this toInputHandler::exists()
that users who work a lot with the ExceptionHandler and error catching there have it easyer in their controllers.The requireParameters function can look like the following:
Maby I also would change the source and content for the error messages (maby using a config?). What do you think @skipperbent?
What do you think in general of my approach? Yes using the
check()
method this is a bit complicated, but it's also simpler.~ Marius