Would also like to know the answer to this. I’m busy with an app that I keep updating because I don’t want to sit in a situation similar to now where I need to update a 2.1.x app to 3.x.x.
In my situation I use a plugin which needs to get the username and the email. Because I want to use the email as username I just want to ask the user for the email (but not for the username) and then set the username to be the email and pass the data to the plugin.
My solution was to have a hiden input for the username then set it in on submit using JavasScript and then add the validation email=username
With setting
I have another use case for modifying the request data.
I’m allowing people to post to one of my sites using a simple API Format. I want my controllers to only access request->data, but when they do a raw data post with JSON directly to the controller, I have to access the data using file_get_contents(‘php://input’).
I’ve been trying to decode the data and replace request->data with the decoded raw data. Unfortunately I can’t do this directly.