/opt/alt/php55/usr/share/pear/Symfony/Component/Security/Core/User
NameSizeModeActions
AdvancedUserInterface.php29050644editdlrm
ChainUserProvider.php25920644editdlrm
EquatableInterface.php10710644editdlrm
InMemoryUserProvider.php30920644editdlrm
User.php23750644editdlrm
UserChecker.php18380644editdlrm
UserCheckerInterface.php9010644editdlrm
UserInterface.php24750644editdlrm
UserProviderInterface.php23910644editdlrm
Edit: /opt/alt/php55/usr/share/pear/Symfony/Component/Security/Core/User/UserChecker.php (1838B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Core\User; use Symfony\Component\Security\Core\Exception\CredentialsExpiredException; use Symfony\Component\Security\Core\Exception\LockedException; use Symfony\Component\Security\Core\Exception\DisabledException; use Symfony\Component\Security\Core\Exception\AccountExpiredException; /** * UserChecker checks the user account flags. * * @author Fabien Potencier */ class UserChecker implements UserCheckerInterface { /** * {@inheritdoc} */ public function checkPreAuth(UserInterface $user) { if (!$user instanceof AdvancedUserInterface) { return; } if (!$user->isAccountNonLocked()) { $ex = new LockedException('User account is locked.'); $ex->setUser($user); throw $ex; } if (!$user->isEnabled()) { $ex = new DisabledException('User account is disabled.'); $ex->setUser($user); throw $ex; } if (!$user->isAccountNonExpired()) { $ex = new AccountExpiredException('User account has expired.'); $ex->setUser($user); throw $ex; } } /** * {@inheritdoc} */ public function checkPostAuth(UserInterface $user) { if (!$user instanceof AdvancedUserInterface) { return; } if (!$user->isCredentialsNonExpired()) { $ex = new CredentialsExpiredException('User credentials have expired.'); $ex->setUser($user); throw $ex; } } }