AuthenticationExpiredException.php 852 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Security\Core\Exception;
  11. /**
  12. * AuthenticationExpiredException is thrown when an authenticated token becomes un-authenticated between requests.
  13. *
  14. * In practice, this is due to the User changing between requests (e.g. password changes),
  15. * causes the token to become un-authenticated.
  16. *
  17. * @author Ryan Weaver <ryan@knpuniversity.com>
  18. */
  19. class AuthenticationExpiredException extends AccountStatusException
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function getMessageKey()
  25. {
  26. return 'Authentication expired because your account information has changed.';
  27. }
  28. }