Re: Credentials fail from custom Auth backend

2021-07-05 Thread David Crandell
BACKENDS.PY class EmpBackend(ModelBackend): Emp = get_user_model() supports_object_permissions = True supports_anonymous_user = False supports_inactive_user = False def authenticate(self, request, email=None, password=None, **kwargs): if email is None or password is None: return try: username =

Re: Credentials fail from custom Auth backend

2021-07-05 Thread David Crandell
This is the message I get when I try to login "Please enter a correct email and password. Note that both fields may be case-sensitive." I've changed my code a little in an effort to try to remedy my situation. I'm really stuck on this. From what I can tell, it's passing the values to the authen

Re: Credentials fail from custom Auth backend

2021-07-04 Thread David Crandell
There is no error. It just says invalid login. I get the login template and it rejects my credentials. David L. Crandell 469-585-5009 g uitard...@outlook.com guitardave8...@gmail.com da...@onholdwizard.com On Sun, Jul 4, 2021 at 9:15 PM ANi wrote: > What does the error message say? > guitard.

Re: Credentials fail from custom Auth backend

2021-07-04 Thread ANi
What does the error message say? guitard...@gmail.com 在 2021年7月4日 星期日下午1:48:58 [UTC+8] 的信中寫道: > Hello, I am using a custom auth backend and everything displays properly, > except I cannot login with the credentials in my model. I have spent 5 > hours on this and cannot figure it out. Please hel

Credentials fail from custom Auth backend

2021-07-03 Thread David Crandell
Hello, I am using a custom auth backend and everything displays properly, except I cannot login with the credentials in my model. I have spent 5 hours on this and cannot figure it out. Please help. views.py class MyLogin(LoginView): template_name = 'employees/login.html' form_class = LoginForm