janko / rodauth-rails

Rails integration for Rodauth authentication framework
https://github.com/jeremyevans/rodauth
MIT License
584 stars 40 forks source link

Add more params to multi configuration #30

Closed nicolas-besnard closed 3 years ago

nicolas-besnard commented 3 years ago

I'm integrating rodauth-rails in a new project, and I was confused about the way multiple accounts configuration is working.

Thanks to rodauth's documentation I was able to add the required parameters.

janko commented 3 years ago

Looks good, thanks! 👍

Just curious, is it theoretically possible to use the same accounts table for multiple types of accounts? Are there any downsides in doing that?

nicolas-besnard commented 3 years ago

When using the same accounts table for multiple type of accounts, you would need to add a is_admin or role column and I always feel like that a mistake could make someone admin 🤔