Guide for using username and pass combo for user auth?

Hi I'd like to have users sign in with their username instead of their email. IIRC someone said just to use the email field and remove a regex pattern for emails from it. Is there a guide for how to do this correctly?

Also, if I still want to have an email for each user, would I still store that in their user row or should I make a secondary user table? Thanks.
Was this page helpful?