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

Make authenticate/2 more flexible #19

Open
jsteiner opened this issue Feb 24, 2017 · 1 comment
Open

Make authenticate/2 more flexible #19

jsteiner opened this issue Feb 24, 2017 · 1 comment

Comments

@jsteiner
Copy link

Currently, Doorman.authenticate/2 is hardcoded to find the user by an email field. This is the only thing in the library that depends on it, and it would nice to have that be more flexible.

For example, you could search for username:

Doorman.authenticate(password, username: username)

Or admins:

Doorman.authenticate(password, admin: true, email: email)
@henrique-ft
Copy link

Check Entrance, a new authentication library built upon Doorman

There you can find this feature and much more

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