Skip to content

use_forward make problem #212

Closed
Closed
@laupiFrpar

Description

@laupiFrpar

Hello,

I want to redirect to /admin/dashboard after logging (/admin/login) but if the parameter security.firewalls.

.use_forward is true, we cannot to access to form login because of the error :

Fatal error: Call to a member function get() on a non-object in
/mnt/workspace/client/project/vendor/bundles/FOS/UserBundle/Controller/SecurityController.php on line 26

The problem is the sessions isn't initialized.

The solution is :

  • Set the parameter security.firewalls..use_forward to false
  • Set the parameter security.firewalls..always_use_default_target_path to true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions