updated User creation method in functional_tests.management.commands.create_session
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -20,7 +20,7 @@ class Command(BaseCommand):
|
||||
self.stdout.write(session_key)
|
||||
|
||||
def create_pre_authenticated_session(email):
|
||||
user = User.objects.create(email=email)
|
||||
user = User.objects.create_user(email=email)
|
||||
session = SessionStore()
|
||||
session[SESSION_KEY] = str(user.pk) # Convert UUID to string for JSON serialization
|
||||
session[BACKEND_SESSION_KEY] = "apps.lyric.authentication.PasswordlessAuthenticationBackend"
|
||||
|
||||
Reference in New Issue
Block a user