Using Username and email as login in wso2
<p>I followed the document
<a href="http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/" rel="nofollow">http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/</a> to allow users login with their Email ID.But it is is mentioned if we enable </p>

<pre><code>&lt;EnableEmailUserName&gt;true&lt;/EnableEmailUserName&gt;
</code></pre>

<p>then users cannot login with their username or any attribute other than email.</p>

<p>Our use case as LDAP as a secondary user store and we also do in time provisioning.So we will need to allow users to login with either email or username. Is there any way to achieve this.</p>