migrations run for lyric models; authentication & views & their tests now account more fully for uuid over email as pk
This commit is contained in:
@@ -15,9 +15,9 @@ class PasswordlessAuthenticationBackend:
|
||||
except User.DoesNotExist:
|
||||
return User.objects.create(email=token.email)
|
||||
|
||||
def get_user(self, email):
|
||||
def get_user(self, user_id):
|
||||
try:
|
||||
return User.objects.get(email=email)
|
||||
return User.objects.get(pk=user_id)
|
||||
except User.DoesNotExist:
|
||||
return None # might also just pass (which = return None)
|
||||
return None # could also pass (which = return None)
|
||||
|
||||
Reference in New Issue
Block a user