소스 검색

Adds authentication error page.

When we receive a conference failed event with reason not allowed we show that page.
master
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…
취소
저장