aaronrenner / phx_gen_auth

An authentication system generator for Phoenix 1.5 applications.
772 stars 55 forks source link

Add an option to generate auth with username instead of email #125

Closed nskins closed 3 years ago

nskins commented 3 years ago

It would be nice to have a custom option for applications that don't need a user's email address to have the authentication generated with a username instead. This means the register and login screens would only require a username (with some minimum length) and a password.

I often work on projects that I like to show my friends and the open source community, but I don't want to deter someone away because they need to provide an email.

josevalim commented 3 years ago

We don’t plan to add more options and flags, as it comes with complexity on the generator, the goal is for you to change and extended the generated code as needed.