login function of authentication plugin not being called

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
NiQ1
Registered User
Posts: 2
Joined: Mon Oct 26, 2020 5:21 pm

login function of authentication plugin not being called

Post by NiQ1 »

I'm trying to write an authentication plugin but when I switch to it from the ACP nobody can log-in anymore at all.
Trying to trace through the code I found that my __construct method is indeed being called but nothing else is called (not init, not login).

I tried to enable debug logs by adding these to config.php and deleting cache:
@define('DEBUG', true);
@define('DEBUG_CONTAINER', true);
@define('DEBUG_EXTRA', true);

But I get absolutely nothing in the footer, not a single line.

Would really appreciate any ideas.

Thank you.

EDIT: Apparently login is called only if validate_session returns true, I'd appreciate an explanation why that happens.
Now I have an issue of autologin never being called...\
Thanks.
Post Reply

Return to “Extension Writers Discussion”