事件
Bundle 在身份验证过程中分发以下事件
scheb_two_factor.authentication.require
常量: Scheb
当用户需要双因素身份验证时分发。当您尝试访问需要完全身份验证的路径时,会发生这种情况。当您成功完成双因素身份验证步骤,但还需要另一个双因素步骤(多因素身份验证)时,也会发生这种情况。
通常,当此事件分发时,请求会重定向到双因素身份验证表单。
scheb_two_factor.authentication.form
常量: Scheb
当显示双因素身份验证表单时分发。
scheb_two_factor.authentication.attempt
常量: Scheb
当尝试双因素身份验证时分发,就在检查代码之前。
scheb_two_factor.authentication.success
常量: Scheb
当单个提供程序的双因素身份验证成功时分发。这并不意味着整个双因素过程已完成。
scheb_two_factor.authentication.failure
常量: Scheb
当给定的双因素身份验证码不正确时分发。
scheb_two_factor.authentication.complete
常量: Scheb
当整个双因素身份验证过程成功完成时分发,这意味着所有需要的提供商的双因素身份验证码都正确,并且用户现在已完全通过身份验证。