Allow login using email

Created on 1 November 2024, 3 months ago

Problem/Motivation

Currently, the module allows the login by only using the "name". For cases when the user tries to login using the "email" there are restrictions.

Steps to reproduce

1. Use the endpoint: /user/lost-password?_format=json to get a temp password
2. Check the mailbox and copy the temp password.
3. Use the endpoint: /user/login?_format=json with the payload: {"name":"some.user@example.com","pass":"cn3cYLFOkUboYg"}
4. The response will be: { "message": "This route can only be accessed by anonymous users."}

Proposed resolution

Write a patch that will allow the login using "email" same as "name".

Remaining tasks

Write the patch

User interface changes

None.

API changes

Covered in the patch.

Data model changes

None.

๐Ÿ’ฌ Support request
Status

Active

Version

8.1

Component

Code

Created by

๐Ÿ‡ฒ๐Ÿ‡ฉMoldova andrei.vesterli Chisinau

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024