Commit df3929f1 authored by Linus Lewandowski's avatar Linus Lewandowski

Restore fallback for users without usable passwords.

parent 7c02ad7e
Pipeline #12283998 passed with stages
in 4 minutes and 56 seconds
from django.contrib.auth import get_user_model
User = get_user_model()
class Backend:
def __init__(self, url):
def check_password(self, user, password):
return user.check_password(password)
ret = user.check_password(password)
return ret if user.has_usable_password() else None
def set_password(self, user, password):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment