Skip to content
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

User controller login action : searching 'redirect' param in POST data too #356

Merged
merged 1 commit into from
May 11, 2014
Merged

User controller login action : searching 'redirect' param in POST data too #356

merged 1 commit into from
May 11, 2014

Conversation

bertrandgauthier
Copy link

Hi!
The 'redirect' param should be searched in POST data too.
Follow this :

  • Open login page URL with a 'redirect' GET param.
  • An hidden field is created with the value of the 'redirect' param, ok.
  • Submit invalid form data (without password for example).
  • The 'redirect' GET param disappear because the form METHOD in "login.phtml" view script is $this->url('zfcuser/login') (without GET param).
  • Yes, the hidden field is well POSTed but not checked by the user controller login action, so the 'redirect' param is lost forever!
    Regards.

Danielss89 added a commit that referenced this pull request May 11, 2014
User controller login action : searching 'redirect' param in POST data too
@Danielss89 Danielss89 merged commit cd78c0f into ZF-Commons:master May 11, 2014
@Danielss89 Danielss89 added this to the 2.0.0 milestone May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants