diff options
Diffstat (limited to 'cmd/web/js/app.js')
-rw-r--r-- | cmd/web/js/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/web/js/app.js b/cmd/web/js/app.js index 8573b6e..d8189e0 100644 --- a/cmd/web/js/app.js +++ b/cmd/web/js/app.js | |||
@@ -62,6 +62,7 @@ App.onUserSignUp = function(token) { | |||
62 | } | 62 | } |
63 | 63 | ||
64 | cookies.setItem('jwt', token, cookieExpire); | 64 | cookies.setItem('jwt', token, cookieExpire); |
65 | page('/not_confirmed'); | ||
65 | }; | 66 | }; |
66 | 67 | ||
67 | App.getUserJWT = function() { | 68 | App.getUserJWT = function() { |
@@ -104,6 +105,9 @@ App.onUserNotAuthorized = function(httpCode, apiCode) { | |||
104 | case 'need_otp_validation': | 105 | case 'need_otp_validation': |
105 | page('/otp/validate'); | 106 | page('/otp/validate'); |
106 | return false; | 107 | return false; |
108 | case 'user_not_confirmed': | ||
109 | page('/not_confirmed'); | ||
110 | return false; | ||
107 | default: | 111 | default: |
108 | return true; | 112 | return true; |
109 | } | 113 | } |