janko / rodauth-rails

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

Is "multiple emails" feature possible? #311

Closed texpert closed 1 month ago

texpert commented 1 month ago

Hello, @janko!

I'm trying to integrate rodauth-rails in a new application, but I'd like to have a separate emails table and Email model to allow the users to have multiple emails. Like, for example, in https://github.com/allenwq/devise-multi_email

Is it somehow possible via some hooks/settings?

janko commented 1 month ago

It's probably possible, you'd just have to override lots of Rodauth methods to achieve it (similar to how the device-multi_email gem overrides a lot of Devise). Moving to a discussion, since it's not a bug report.