Commit e87f1326f552ff802ddd73ddd72ac46293e9c96a
1 parent
747121be
Fixed issue when publicId is invalid.
Showing
2 changed files
with
5 additions
and
1 deletions
... | ... | @@ -339,6 +339,7 @@ function UserService($http, $q, $rootScope, adminService, dashboardService, logi |
339 | 339 | updateAndValidateToken(refreshToken, 'refresh_token', false); |
340 | 340 | procceedJwtTokenValidate(); |
341 | 341 | }, function fail() { |
342 | + $location.search('publicId', null); | |
342 | 343 | deferred.reject(); |
343 | 344 | }); |
344 | 345 | } else { | ... | ... |
... | ... | @@ -111,7 +111,10 @@ export default function AppRun($rootScope, $window, $injector, $location, $log, |
111 | 111 | } |
112 | 112 | } |
113 | 113 | } else { |
114 | - if (to.module === 'private') { | |
114 | + if (publicId && publicId.length > 0) { | |
115 | + evt.preventDefault(); | |
116 | + reloadUserFromPublicId(); | |
117 | + } else if (to.module === 'private') { | |
115 | 118 | evt.preventDefault(); |
116 | 119 | if (to.url === '/home' || to.url === '/') { |
117 | 120 | $state.go('login', params); | ... | ... |