summaryrefslogtreecommitdiffstats
path: root/webapp/client/web_client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/web_client.jsx')
-rw-r--r--webapp/client/web_client.jsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/client/web_client.jsx b/webapp/client/web_client.jsx
index 62870c5bc..324d4cd25 100644
--- a/webapp/client/web_client.jsx
+++ b/webapp/client/web_client.jsx
@@ -38,6 +38,11 @@ class WebClientClass extends Client {
}
handleError(err, res) {
+ if (res.body.id === 'api.context.mfa_required.app_error') {
+ window.location.reload();
+ return;
+ }
+
if (err.status === HTTP_UNAUTHORIZED && res.req.url !== '/api/v3/users/login') {
GlobalActions.emitUserLoggedOutEvent('/login');
}