@danschultzer It is me again.
lock_users guide works fine, I found that the default
session_controller won’t use the
EnsureNotLockedUser plug when creating a new session.
Well, it is true that adding the guide plug before any route of the app will do the job, but do you recommend using it like that ?
Anyway I’m trying to use a custom session_controller but I find the process a bit complex…
Here is all I’ve read in the docs about it:
The registration and session controllers can be changed with your customized versions too, but since the routes are built on compile time, you’ll have to set them up in
:pow namespace. For minor pre/post-processing of requests, you can use the
:controller_callbacks option. It exists to make it easier to modify flow with extensions (e.g., send a confirmation email upon user registration).
So I have a few questions.
- For custom controllers, is there a way to use the coresponding default controller view and templates?
- Is just setting up custom controllers in
:pow namespace will be sufficient for all to work? (I seem to get some errors about view module not found…)
- Is using some custom controller, means that we have to update configuration with
- Will it be possible to make for noobs some quick guide on a very basic custom controller ?
Thank you for your work and your time. ^^