From 55131aa4b5d168101fb0de7b50a5919cfcd0bcea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9lestin=20Matte?= <dev@cmatte.me>
Date: Tue, 22 Sep 2026 16:30:05 +0200
Subject: [PATCH] Fix typo in call to pgauth createuser callback

An obvious typo that passes 'f' instead of the user's firstname to the
callback.
---
 tools/communityauth/sample/django/auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/communityauth/sample/django/auth.py b/tools/communityauth/sample/django/auth.py
index 45159636..3352a5d1 100644
--- a/tools/communityauth/sample/django/auth.py
+++ b/tools/communityauth/sample/django/auth.py
@@ -184,7 +184,7 @@ We apologize for the inconvenience.
             res = getattr(settings, 'PGAUTH_CREATEUSER_CALLBACK')(
                 data['u'][0],
                 data['e'][0],
-                ['f'][0],
+                data['f'][0],
                 data['l'][0],
             )
             # If anything is returned, we'll return that as our result.
-- 
2.55.0

