【问题标题】:Email doesn't receive when account locking帐户锁定时收不到电子邮件
【发布时间】:2021-06-03 08:17:01
【问题描述】:

我正在使用 wso2 身份服务器 5.11.0 服务器。我使用 [1] 设置了帐户锁定。即使帐户被锁定,我也没有收到任何电子邮件。但是当我从管理控制台解锁同一个帐户时,我收到了一封电子邮件。

deployment.toml 配置

[event.default_listener.identity_mgt]
priority= "50"
enable = false
[event.default_listener.governance_identity_mgt]
priority= "95"
enable = true

[identity_mgt.account_locking]
enable_account_locking=true
allowed_failed_attempts=3
auto_unlock_time_increment_ratio=2
auto_unlock_after=15

[identity_mgt.user_onboarding]
ask_password_from_user= true
enable_email_verification = true
lock_on_creation=true

[output_adapter.email]
from_address= "xxxxxx@gmail.com"
username= "xxxxxx"
password= "xxxxx"
hostname= "smtp.gmail.com"
port= 587
enable_start_tls= true
enable_authentication= true

锁定帐户时是否需要添加其他配置才能接收电子邮件?

[1]https://is.docs.wso2.com/en/5.9.0/learn/locking-a-specific-user-account/

【问题讨论】:

  • 您是否尝试过failed login attempt based account lockinglock the account by admin navigating to the management console 这两种情况?帐户锁定时,您是否在 carbon 控制台(终端)中看到任何错误日志?

标签: wso2 wso2is


【解决方案1】:

如何锁定用户帐户?根据this,如果用户处于以下状态之一,则不会发送电子邮件。

  • PENDING_SELF_REGISTRATION
  • PENDING_EMAIL_VERIFICATION
  • PENDING_LITE_REGISTRATION

干杯, 伊苏拉。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-12-28
    • 2018-02-03
    • 2011-05-21
    • 1970-01-01
    • 1970-01-01
    • 2013-02-13
    • 1970-01-01
    相关资源
    最近更新 更多