I have the following route:
post ':client_name/login' => 'auth#log_in'
Client side I have a form with the following fields:
- username
- password
- and client_name
I was hoping that the form data would override the route data so that I could change the client name if needed. But it doesn’t. Any chance there’s a setting for accessing that? Or a way to directly access only the post data?
F.y.i.: I don’t show that <input> tag unless the user puts in the wrong password first. In that case I provide it (already filled out with the value from the route). This is helpful mainly for internal users who might get a link from one of their clients, they can then log in with a special value for the client that gives them more universal access.
Alright, until someone gives me a better solution (and I don’t believe there is no better solution) I’ll change the name of the posted client name to
:override_client_name.