wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
851 stars 787 forks source link

Regular users (username only) are not able to access the portals when the email login is enabled #12756

Open sarindufit opened 2 years ago

sarindufit commented 2 years ago

Description:

When the email login is enabled and the following configuration is used, both regular users as well as the email users should be able to access the web portals.

[tenant_mgt]
enable_email_domain = true
disable_email_domain_validation = true

This functionality is not working as expected currently in APIM 4.0.0. However, the same functionality works fine in IS 5.11.0

Steps to reproduce:

  1. Enable email login for the users by following the below.

https://apim.docs.wso2.com/en/latest/install-and-setup/setup/security/logins-and-passwords/maintaining-logins-and-passwords/#maintaining-logins-and-passwords

  1. Try to login to a web portal as a regular user and the below error message will be displayed at the login page.

Invalid username! Username should be an E-mail address

Affected Product Version:

API Manager 4.0.0


Optional Fields

Related Issues:

https://github.com/wso2/product-is/issues/10760

dishelt commented 2 years ago

any idea how it will work in the current release of wso2is 5.11.0?