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

How to redirect the registration success/faillure overriding the controller ? #120

Open
GauthierCoste opened this issue Oct 3, 2016 · 0 comments

Comments

@GauthierCoste
Copy link

GauthierCoste commented Oct 3, 2016

I have the controller working fine :

<?php
namespace UserBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class RegistrationStandardUserController extends Controller
{
    public function registerAction()
    {
        return $this->container
                    ->get('pugx_multi_user.registration_manager')
                    ->register('UserBundle\Entity\StandardUser');
    }
}

But I don't know how to override it. I will also need to make a step by step registration for the "Seller type" of user so I need to redirect on the secondStep i case of success, and same page in case of faillure.
Right now, in case of faillure, I'm redirected on the FosUserBundleregistration page (and not my custom page which is something like "/pro/register"

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

No branches or pull requests

1 participant