Backends¶
evileg_core.backends module¶
-
class
evileg_core.backends.
EEmailOrUsernameModelBackend
[source]¶ Bases:
django.contrib.auth.backends.ModelBackend
Authentication backend for using email or username for authentication on the site.
-
authenticate
(request, username=None, password=None)[source]¶ - Parameters
request – HTTP Request
username – username or email
password – password
- Returns
User Object or None
-