Is there a way to authenticate users using their email only, not their username?

System Information
  • Strapi Version: 4.x
  • Operating System: Any
  • Database: Any
  • Node Version: Any
  • NPM Version: Any
  • Yarn Version: Any

Is there a parameter or setting that will allow authentication with the Email address only? I know I can do this via Javascript, but it would be much cleaner if there was some Strapi functionality for this.

You don’t really need any javascript.
You can set the email and username to the email and then that will be their login + password

Yes, that will work. But is there a way to let them have a username other than their email, but only be able to log in with their email address?

Isnt this possible using the advice above, but just add another “name” field to the user type in the backend?

So username+email becomes the same (removing the need for a password), but the user has a field where they can add a “name” to their account?