Skip to content

UserController loginAction #195

Closed
Closed
@j-r-t

Description

@j-r-t

I noticed this in the loginAction

    if ($this->getOptions()->getUseRedirectParameterIfPresent() && $request->getQuery()->get('redirect')) {
        $redirect = $request->getQuery()->get('redirect');
    } else {
        $redirect = false;
    }

shouldn't it be

    if ($this->getOptions()->getUseRedirectParameterIfPresent() && $request->getPost()->get('redirect')) {
        $redirect = $request->getPost()->get('redirect');
    } else {
        $redirect = false;
    }

?. I was having problems with it continually returning false and then realised it should probably be getPost. The login form has a hidden redirect field..upon submit it passes this through post..not string (in regards to the view helper)

eg. $this->ZfcUserLoginWidget(array('redirect'=>'foo');

creates
input type="hidden" name="redirect" value="foo" />

Thanks,

Jesse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions