Replies: 6 comments
-
InternalRequest doesn't have a I wouldn't have a problem adding some active_sessions methods to the internal request feature, such as |
Beta Was this translation helpful? Give feedback.
-
Basically yes except currently just with |
Beta Was this translation helpful? Give feedback.
-
The issue with calling |
Beta Was this translation helpful? Give feedback.
-
There are the audit logging hooks but I'm not sure if we actually want to log these particular logouts. We have a few places where we were calling logout outside of a user hitting the logout url and I want to remove their active sessions in those cases. My thinking was basically that, like calling |
Beta Was this translation helpful? Give feedback.
-
I don't want to change the default behavior of You can certainly keep doing what you are doing, or you can call |
Beta Was this translation helpful? Give feedback.
-
That makes sense. Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if there was a standard way to logout an account that includes the
before_logout
andafter_logout
hooks from the logout plugin (mostly so that the code in active sessions will run and remove the active session from the DB). Currently I'm doing it manually with a new method that calls all the hooks in a transaction just like in the logout plugin routeIs this a good way to do this? I thought there would be a
logout
method onInternalRequest
that would run all the hooks just like the route but I didn't see it there.Beta Was this translation helpful? Give feedback.
All reactions