from django.conf import settings
from django.contrib.auth.models import User


class ExtendedWayfBackend:
    def authenticate(self, username=None, password=<PASSWORD>):
        user, is_new = User.objects.get_or_create(username=username)

        return user

    def get_user(self, userid):
        user = User.objects.get(pk=userid)

        return user

from django.conf import settings
from django.contrib.auth.models import User


class ExtendedWayfBackend:
    def authenticate(self, username=None, password=<PASSWORD>):
        user, is_new = User.objects.get_or_create(username=username)

        return user

    def get_user(self, userid):
        user = User.objects.get(pk=userid)

        return user
