File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -286,9 +286,12 @@ Authentication Success and Failure Events
286
286
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
287
287
288
288
When a provider authenticates the user, a ``security.authentication.success ``
289
- event is dispatched. Likewise, when a provider attempts authentication but
290
- fails (i.e. throws an ``AuthenticationException ``), a
291
- ``security.authentication.failure `` event is dispatched. You could listen on
289
+ event is dispatched. But beware - this event will fire, for example, on *every *
290
+ request if you have session-based authentication. See ``security.interactive_login ``
291
+ below if you need to do something when a user *actually * logs in.
292
+
293
+ When a provider attempts authentication but fails (i.e. throws an ``AuthenticationException ``),
294
+ a ``security.authentication.failure `` event is dispatched. You could listen on
292
295
the ``security.authentication.failure `` event, for example, in order to log
293
296
failed login attempts.
294
297
You can’t perform that action at this time.
0 commit comments