mia-accounting-django/mia_core/digest_auth.py

12 lines
273 B
Python
Raw Normal View History

2020-07-04 08:17:08 +08:00
from mia_core.models import User
class AccountBackend:
def get_partial_digest(self, username):
if username != "imacat":
return None
return "5486b64881adaf7bc1485cc26e57e51e"
def get_user(self, username):
return User(username)