Avoiding administrative login

Asked by Notheros

Hello guys,

I'm having a problem with the administration login. It is appearing when I don want it to appear. I know that I can create a security.yml on my application, but it didn't worked. Let me explain the situation:

The fronted app has a module with a X action calling a Y action in a plugin. The admin login appears when the Y action is called, therefore, I think is useless to put security: false on the module, because the Y action isn't part of it.

APP > Module > X >>>>>>>> Plugin > Y

So, my question is: There's a way to take out the security even if the action doesn't belong the module which called it? Or I have a lost cause here?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Solved by:
gbastien
Solved:
Last query:
Last reply:
Revision history for this message
Best gbastien (gbastien02) said :
#1

Hi,

You'll need to set the security of this action in the plugin.
1- Add a file security.yml in <base dir>/plugins/<your plugin>/modules/<the module containing the action>/config/security.yml
2- In that file, add
  name_of_action:
    is_secure: false

Clear the cache and that should do it.

Revision history for this message
Notheros (willianpestana-l) said :
#2

Thanks gbastien, that solved my question.