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

Allow to authenticate by email field #17

Open
mlen108 opened this issue Jun 12, 2013 · 3 comments
Open

Allow to authenticate by email field #17

mlen108 opened this issue Jun 12, 2013 · 3 comments
Labels

Comments

@mlen108
Copy link
Contributor

mlen108 commented Jun 12, 2013

There should be a way to explicitly pass/use email field in
https://github.com/incuna/incuna-auth/blob/master/incuna_auth/backends.py#L13

It raises error if User model does not contain username field and user tries to log in with just "account_name" (note missing "@").

@ghickman
Copy link
Contributor

@mattack108 – Are you getting this with a 1.5 custom user model?

@mlen108
Copy link
Contributor Author

mlen108 commented Jun 12, 2013

@ghickman YES. When I try to login to /admin

@ghickman
Copy link
Contributor

@mattack108 – Use the default Django one and it should be fine.

I think we need to deprecate this backend for 1.5+ because of this.

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

No branches or pull requests

2 participants