summaryrefslogtreecommitdiffstats
path: root/Core/Exception/AuthenticationExpiredException.php
Commit message (Collapse)AuthorAgeFilesLines
* Adding a new exception and throwing it when the User changesRyan Weaver2015-09-201-0/+31
This is quite technical. As you can see in the provider, the method is called sometimes when the User changes, and so the token becomes de-authenticated (e.g. someone else changes the password between requests). In practice, the user should be unauthenticated. Using the anonymous token did this, but throwing an AccountStatusException seems like a better idea. It needs to be an AccountStatusException because the ExceptionListener from the Firewall looks for exceptions of this class and logs the user out when they are found (because this is their purpose).