1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

fix bug when user login via shib (#4416)

This commit is contained in:
lian
2020-01-15 14:06:46 +08:00
committed by Daniel Pan
parent 3343d0533c
commit 28bd2c4f87

View File

@@ -62,5 +62,7 @@ class ShibbolethRemoteUserBackend(RemoteUserBackend):
notify_admins_on_register_complete(user.email) notify_admins_on_register_complete(user.email)
else: else:
user = None user = None
else:
user = User.objects.get(email=username)
return user return user