doorman icon indicating copy to clipboard operation
doorman copied to clipboard

Make `authenticate/2` more flexible

Open jsteiner opened this issue 8 years ago • 1 comments

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)

jsteiner avatar Feb 24 '17 19:02 jsteiner

Check Entrance, a new authentication library built upon Doorman

There you can find this feature and much more

henrique-ft avatar Jan 31 '20 23:01 henrique-ft