File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 47
47
48
48
49
49
# This signal fires when a user is created based on data from upstream.
50
- auth_user_created_from_upstream = Signal(providing_args=['user', ] )
50
+ auth_user_created_from_upstream = Signal()
51
51
52
52
# This signal fires whenever new user data has been received. Note that this
53
53
# happens *after* first_name, last_name and email has been updated on the user
54
54
# record, so those are not included in the userdata struct.
55
- auth_user_data_received = Signal(providing_args=['user', 'userdata'] )
55
+ auth_user_data_received = Signal()
56
56
57
57
58
58
class AuthBackend(ModelBackend):
@@ -374,13 +374,3 @@ def user_import(uid):
374
374
auth_user_created_from_upstream.send(sender=user_import, user=u)
375
375
376
376
return u
377
-
378
-
379
- # Try to load the key (and throw it away) to verify that the format is
380
- # correct.
381
- try:
382
- k = base64.b64decode(settings.PGAUTH_KEY)
383
- if len(k) != 32:
384
- raise Exception("PGAUTH_KEY must be 32 bytes long")
385
- except Exception as e:
386
- raise Exception("Invalid PGAUTH_KEY: {}".format(e))
You can’t perform that action at this time.
0 commit comments