When a user doesn't have the credentials required for an action, symfony tries to access to the
To customize the "Credentials Required" page, add the
executeLogin() method in the
* Warning page for restricted area - requires login
public function executeSecure()
Then create the
If you want, you can grab the original file and modify it.
Display the "Credentials Required" page to test it
- Pass in the production environement
- Login, but not as super admin.
In one of your modules, add in
credentials: [ aCredentialYouDontHave ]
- Clear cache
- Try to access to one of the module actions
Using an other module
If you want to use an other module, modify
secure_module: foo # To be called when a user doesn't have
secure_action: bar # The credentials required for an action
Clear your cache.
php symfony cc