Commit 4fb8a3f360883fb8542df325c507c217e93f47da

Authored by Andrew Buss
1 parent 679e2b38e9

start handling locked account

Showing 1 changed file with 7 additions and 1 deletions Side-by-side Diff

... ... @@ -26,7 +26,7 @@
26 26 if (methodName !== 'length') {
27 27 NodeList.prototype[methodName] = Array.prototype[methodName];
28 28 }
29   - };
  29 + }
30 30  
31 31 $httpProvider.interceptors.push(function($q) {
32 32 return {
... ... @@ -35,6 +35,12 @@
35 35 console.log('got error');
36 36 console.log(rejection);
37 37 $('body').html('<div class="card">Sorry, the server is not serving requests properly. Try again later</div>');
  38 + }
  39 + if(rejection.status == 403){
  40 + console.log(rejection);
  41 + if(rejection.data && rejection.data.detail == "Please verify your email before continuing"){
  42 + material
  43 + }
38 44 }
39 45 return $q.reject(rejection);
40 46 }