riverrun / openmaize

No longer maintained - was an Authentication library for Plug-based applications in Elixir
Other
206 stars 30 forks source link

Remove the unique_id argument for the installer #86

Closed riverrun closed 7 years ago

riverrun commented 7 years ago

As there are so many different ways of setting up a web app, I think it's going to be difficult to get this option working well. I propose to remove this argument and have a simple setup which is easy to edit.

Outline for version 3.0

The new Openmaize.Login Plug will not have a unique_id option. It will accept either email or username as user-identifier and can easily be customized to accept other identifiers.

The database files will have email and username entries, and will use email to index each user.

The session/new.html.eex form will just have email and password inputs.

All the other forms will have input boxes for email, username (and password if necessary).

We could also drop all the references to username.

riverrun commented 7 years ago

This has been removed in version 2.8. It still uses username as user-identifier.

When version 3 comes along, I will probably change username to email.