Skip to content

Make authenticate/2 more flexibleΒ #19

Open
@jsteiner

Description

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)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions