FS-8205 [verto_communicator] fix login config provision

This commit is contained in:
Stefan Yohansson 2015-09-24 20:37:33 -03:00 committed by Ken Rice
parent 8d15e0a3d7
commit ba8b7c8aa2
1 changed files with 2 additions and 2 deletions

View File

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