Преглед изворни кода

Adds authentication error page.

When we receive a conference failed event with reason not allowed we show that page.
j8
damencho пре 8 година
родитељ
комит
1e54111aad
2 измењених фајлова са 15 додато и 0 уклоњено
  1. 8
    0
      authError.html
  2. 7
    0
      conference.js

+ 8
- 0
authError.html Прегледај датотеку

@@ -0,0 +1,8 @@
1
+<html>
2
+<head>
3
+    <link rel="stylesheet" href="css/all.css"/>
4
+</head>
5
+<body>
6
+    <div class="redirectPageMessage">Sorry! You are not allowed to be here :(</div>
7
+</body>
8
+</html>

+ 7
- 0
conference.js Прегледај датотеку

@@ -401,6 +401,13 @@ class ConferenceConnector {
401 401
             }
402 402
             break;
403 403
 
404
+        case ConferenceErrors.NOT_ALLOWED_ERROR:
405
+            {
406
+                // let's show some auth not allowed page
407
+                window.location.pathname = "authError.html";
408
+            }
409
+            break;
410
+
404 411
         case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
405 412
             APP.UI.notifyBridgeDown();
406 413
             break;

Loading…
Откажи
Сачувај