ZfcUser在登录时添加其他检查

时间:2015-10-31 18:33:04

标签: php zend-framework2 zfcuser

我有一个活跃且不活跃的用户。如何添加支票以仅授权is_active = 1

的用户

1 个答案:

答案 0 :(得分:0)

收听登录事件,并在用户未激活时重定向。 这是如何使用事件的示例:https://github.com/ZF-Commons/ZfcUser/wiki/How-to-perform-a-custom-action-when-a-new-user-account-is-created