Enables the UI to differentiate between the login identifier options, both email and username, or exclusively emails or usernames.
Additionally, introduces a new error type for handling unknown usernames, enabling the UI to respond accordingly.
Implementation
Previously, there was one input field named 'identifier', but in the UI, the placeholder in the input field should indicate whether the user can enter an email, a username, or both. Therefore, individual fields are now available. The introduced private method analyzeIdentifierInputs() checks the user input and determines, from the individual fields, the information of the input field expected based on the backend configuration.
Description
Implementation
Previously, there was one input field named 'identifier', but in the UI, the placeholder in the input field should indicate whether the user can enter an email, a username, or both. Therefore, individual fields are now available. The introduced private method
analyzeIdentifierInputs()
checks the user input and determines, from the individual fields, the information of the input field expected based on the backend configuration.