Skip to content

Commit 4b749a1

Browse files
authored
Merge pull request #938 from dpalou/MOBILE-1987
MOBILE-1987 login: Show error if logged out and offline
2 parents 77f2c21 + b1bbb99 commit 4b749a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

www/core/components/login/main.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,13 @@ angular.module('mm.core.login', [])
305305
});
306306
}
307307
}
308+
}).catch(function(error) {
309+
// Error checking site.
310+
if ($mmSite.isLoggedOut()) {
311+
// Site is logged out, show error and logout the user.
312+
$mmUtil.showErrorModalDefault(error, 'mm.core.networkerrormsg', true);
313+
logout();
314+
}
308315
});
309316
}
310317

0 commit comments

Comments
 (0)