Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authlogic with User has_many :emails #207

Closed
kbighorse opened this issue Nov 6, 2010 · 1 comment
Closed

Authlogic with User has_many :emails #207

kbighorse opened this issue Nov 6, 2010 · 1 comment

Comments

@kbighorse
Copy link

Created a question here as well:
http://stackoverflow.com/questions/4111316/authlogic-with-user-has-many-emails

Just want to authenticate a user by any of their associated email addresses, not by any attribute in the user model. From the mentioned forum post, it looks possible, although hacky, has anyone done this successfully yet?

Kimball

@exceed
Copy link

exceed commented May 8, 2011

@kbighorse: Yes. It is possible, and has been done. You need to write your own finder method for the user, and tell authlogic about it in the config. It is that simple!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants