Comments (8)
Thanks for reporting!
I also have an application with both FOSUserBundle & ConsoleBundle.
You have overwritten templates in Resources/views/
, right? Could you show me this?
The ConsoleBundle is injecting html code before </body>
; as WebProfilerBundle does.
I will have a look deeply at this when you have provided me some code.
from consolebundle.
In my UserBundle(.php) I have
public function getParent()
{
return 'FOSUserBundle';
}
So I can have the twig files in my bundle instead of in app/Resources, now I have my login.html.twig in my UserBundle/Resources/views/Security.
It's also in the docs https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/overriding_templates.md at b) Create A Child Bundle And Override Template
from consolebundle.
This is not about FOSUserBundle or another way to render a login form. It is simply that the AJAX url of ConsoleBundle is matched by your firewall and requires being authenticated, and so the AJAX request will return a login form instead of the console.
Btw, if you want a third login form, you can have it by forcing the web debug toolbar to be authenticated too 😁 Avoiding it is the reason why the SE defines a dev
friewall disabling security for the WDT and the profiler
from consolebundle.
@stof Thanks for intervention, I was assuming he followed instructions.
# app/config/security.yml
security:
firewalls:
sf2gen:
pattern: /_sf2gencdt/.*
security: false
from consolebundle.
@RapotOR Gold rule when debugging a user issue: never assume I followed the doc :)
from consolebundle.
@RapotOR I have followed the instructions. http://pastebin.com/veJxP072 is my security.yml
from consolebundle.
@DeluxZ you need to put it before your catch-all firewall otherwise it will never be used. Firewalls are tried in the order in which they are defined until one has a matching pattern. As you main
firewall catches everything, any firewall defined after it is simply a dead one
from consolebundle.
@stof Thanks, that was the problem.
One more question. When I want to login, it redirects to /_sf2gencdt/ instead of the home url
from consolebundle.
Related Issues (13)
- Arguments autocompletion
- cache:clear issue HOT 4
- Use local storage for the commands history HOT 2
- Error when using a new process HOT 1
- Improve the CSS HOT 4
- input broken when containing a space
- Interactive commands
- Bundle broken with Symfony 2.1 HOT 5
- method getStyleStack missing HOT 1
- Composer requirement Issue
- Add PHPDoc
- Add unit tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consolebundle.