implement proper account blocking

c9
Fabian Jakobs 2015-03-18 10:29:23 +00:00
rodzic 955c6bb566
commit 4d15d812bc
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -206,6 +206,9 @@ define(function(require, exports, module) {
return;
}
else if (err.code == 403) {
if (res.error.blocked)
callback(fatalError(res.error.message, "dashboard"));
// forbidden. User doesn't have access
// wait a while before trying again
setTimeout(function() {