FS-8205 [verto_communicator] fix login with config provision

This commit is contained in:
Stefan Yohansson 2015-09-24 20:04:04 -03:00 committed by Ken Rice
parent f1ce52430d
commit d5241c8c06
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
verto.data.autologin_done = true;
}
$rootScope.$emit('config.http.success', data);
if(verto.data.login && verto.data.password && verto.data.name && verto.data.email) {
$rootScope.$emit('config.http.success', data);
}
return response;
}, function(response) {
$rootScope.$emit('config.http.error', response);