diff --git a/www/core/components/login/main.js b/www/core/components/login/main.js index d89dcf06974..1d6f451d2d3 100644 --- a/www/core/components/login/main.js +++ b/www/core/components/login/main.js @@ -305,6 +305,13 @@ angular.module('mm.core.login', []) }); } } + }).catch(function(error) { + // Error checking site. + if ($mmSite.isLoggedOut()) { + // Site is logged out, show error and logout the user. + $mmUtil.showErrorModalDefault(error, 'mm.core.networkerrormsg', true); + logout(); + } }); }