Open source video conferencing app powered by LiveKit. Built with Django and React.
✅(backend) handle inactive user
lebaudantoine04d76acce564
diff --git a/src/backend/core/authentication/backends.py b/src/backend/core/authentication/backends.pyindex ddfa60ad..ae1a2b2f 100644--- a/src/backend/core/authentication/backends.py+++ b/src/backend/core/authentication/backends.py@@ -83,4 +83,10 @@ class OIDCAuthenticationBackend(MozillaOIDCAuthenticationBackend):else:user = None+ if not user:+ return None++ if not user.is_active:+ raise SuspiciousOperation(_("User account is disabled"))+return user