From 1e54111aadf3d2542aaa34b662288e7e1406dd4e Mon Sep 17 00:00:00 2001 From: damencho Date: Tue, 27 Sep 2016 17:26:38 -0500 Subject: [PATCH] Adds authentication error page. When we receive a conference failed event with reason not allowed we show that page. --- authError.html | 8 ++++++++ conference.js | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 authError.html diff --git a/authError.html b/authError.html new file mode 100644 index 000000000..1c3b27b45 --- /dev/null +++ b/authError.html @@ -0,0 +1,8 @@ + + + + + +
Sorry! You are not allowed to be here :(
+ + \ No newline at end of file diff --git a/conference.js b/conference.js index ed346eca2..758af7b41 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;