implement proper account blocking

This commit is contained in:
Fabian Jakobs 2015-03-18 10:29:23 +00:00
parent 955c6bb566
commit 4d15d812bc

View File

@ -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() {