square-napkin-92357
04/21/2025, 10:45 AMbrief-egg-61061
04/21/2025, 10:45 AMbrief-egg-61061
04/21/2025, 10:46 AMpassword
identifiers and therefore email addresses. > - userNAME
is equal to username
[Customize identity schemas](https://www.ory.sh/docs/kratos/manage-identities/customize-identity-schema#choosing-between-username-email-and-phone-number) However, the original case is preserved in the identity traits themselves. So if you're using these usernames for display purposes or other non-authentication functions, the case difference would be maintained in the stored identity. When creating custom identity schemas with usernames as identifiers, you would define them in your schema like this: json { "properties": { "traits": { "properties": { "username": { "type": "string", "<http://ory.sh/kratos|ory.sh/kratos>": { "credentials": { "password": { "identifier": true } } } } } } } }
This configuration would allow users to log in with their username, but the authentication process would treat "VN001abc" and "VN001abC" as identical for login purposes.