UserCheckerInterface

UserCheckerInterface

interface UserCheckerInterface

Implement to throw AccountStatusException during the authentication process.

Can be used when you want to check the account status, e.g when the account is disabled or blocked. This should not be used to make authentication decisions.

Methods

checkPreAuth(UserInterface $user)

Checks the user account before authentication.

checkPostAuth(UserInterface $user)

Checks the user account after authentication.

Details

checkPreAuth(UserInterface $user)

Checks the user account before authentication.

Parameters

UserInterface $user a UserInterface instance

Exceptions

AccountStatusException

checkPostAuth(UserInterface $user)

Checks the user account after authentication.

Parameters

UserInterface $user a UserInterface instance

Exceptions

AccountStatusException

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Security/Core/User/UserCheckerInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部