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

Redirect after registering with success #633

Open
smknstd opened this issue Mar 22, 2016 · 0 comments
Open

Redirect after registering with success #633

smknstd opened this issue Mar 22, 2016 · 0 comments

Comments

@smknstd
Copy link

smknstd commented Mar 22, 2016

Hello there !

As I have an email verification process, after registration I don't want my user to be logged in so I used option : 'login_after_registration' => false, which works fine. But I want to redirect user to a static page, and registerAction don't let me do that properly:

        // TODO: Add the redirect parameter here...
        return $this->redirect()->toUrl($this->url()->fromRoute(static::ROUTE_LOGIN) . ($redirect ? '?redirect='. rawurlencode($redirect) : ''));

There is something wrong with always redirecting to login...

Also, I found a workaround, by brutally redirect on bootstrap through the really usefull event "register.post" :)

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant