Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds authentication error page.

damencho1e54111aadf3
diff --git a/authError.html b/authError.html
new file mode 100644
index 0000000000..1c3b27b45e
--- /dev/null
+++ b/authError.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+ <link rel="stylesheet" href="css/all.css"/>
+</head>
+<body>
+ <div class="redirectPageMessage">Sorry! You are not allowed to be here :(</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/conference.js b/conference.js
index ed346eca24..758af7b416 100644
--- a/conference.js
+++ b/conference.js
@@ -401,6 +401,13 @@ class ConferenceConnector {
}
break;
+ case ConferenceErrors.NOT_ALLOWED_ERROR:
+ {
+ // let's show some auth not allowed page
+ window.location.pathname = "authError.html";
+ }
+ break;
+
case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
APP.UI.notifyBridgeDown();
break;