authboss icon indicating copy to clipboard operation
authboss copied to clipboard

Add ability to stop EventLoop from inside an event

Open larrycinnabar opened this issue 3 years ago • 1 comments

What about an option to stop (Halt) event loop from inside an event? return true, nil will still loop through all registered hooks in the given event chain, and there is no option to stop and do not continue to following registered hooks

larrycinnabar avatar Apr 19 '22 10:04 larrycinnabar

What is the purpose behind this? The event handler signature passes in the handled bool so the decision rests in the event handlers themselves. A hard halt can prevent important event handlers from running - even those that MUST run every time (like a lock module that must know every time auth has failed).

aarondl avatar Nov 08 '23 00:11 aarondl