riverrun / openmaize

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

Generator lacks some of the fields used by otp and user role admin #75

Closed guidotripaldi closed 7 years ago

guidotripaldi commented 7 years ago

Hi David, I've noticed that the priv/templates/phoenixauth/user_migration.exs used by the generator, lacks some of the fields (:otp_required, :otp_secret, :role and :remember) used by the "advanced" openmaize version. It is just an oversight or an intended behavior? Are we supposed to add them by hand to the project, or we may safely enhance the generator so to speedup the project setup?

riverrun commented 7 years ago

At the moment, this is intended. The generator provides the most basic setup. We can of course work on improving this. It depends a lot on what people want.

riverrun commented 7 years ago

I think things like :otp_required and :role can be addressed in the wiki -- maybe have a brief explanation together with some snippets of code that people could copy and paste.