summaryrefslogtreecommitdiff
path: root/postgresqleu/auth.py
diff options
context:
space:
mode:
authorMagnus Hagander2023-06-07 20:18:38 +0000
committerMagnus Hagander2023-06-07 20:18:38 +0000
commit584302c520ec80560f9608973f4f6ade0f5f363e (patch)
tree19446d764f5dd144d4304077f7d258e8cbb37796 /postgresqleu/auth.py
parentdc48bb9faedec3626feb00f7eb1b282f42251d18 (diff)
Sync up to latest version of pgweb auth plugin (again)
Diffstat (limited to 'postgresqleu/auth.py')
-rw-r--r--postgresqleu/auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/auth.py b/postgresqleu/auth.py
index 8a595950..0a075715 100644
--- a/postgresqleu/auth.py
+++ b/postgresqleu/auth.py
@@ -184,7 +184,7 @@ We apologize for the inconvenience.
)
user.save()
- auth_user_created_from_upstream.send(user)
+ auth_user_created_from_upstream.send(sender=auth_receive, user=user)
# Ok, we have a proper user record. Now tell django that
# we're authenticated so it persists it in the session. Before
@@ -371,6 +371,6 @@ def user_import(uid):
)
u.save()
- auth_user_created_from_upstream.send(user)
+ auth_user_created_from_upstream.send(sender=user_import, user=u)
return u