Browse Source

Adds authentication error page.

When we receive a conference failed event with reason not allowed we show that page.
master
damencho 8 years ago
parent
commit
1e54111aad
2 changed files with 15 additions and 0 deletions
  1. 8
    0
      authError.html
  2. 7
    0
      conference.js

+ 8
- 0
authError.html View File

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 View File

401
             }
401
             }
402
             break;
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
         case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
411
         case ConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE:
405
             APP.UI.notifyBridgeDown();
412
             APP.UI.notifyBridgeDown();
406
             break;
413
             break;

Loading…
Cancel
Save