提交 ba8b7c8a authored 作者: Stefan Yohansson's avatar Stefan Yohansson 提交者: Ken Rice

FS-8205 [verto_communicator] fix login config provision

上级 8d15e0a3
...@@ -62,9 +62,9 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', ' ...@@ -62,9 +62,9 @@ vertoService.service('config', ['$rootScope', '$http', '$location', 'storage', '
verto.data.autologin_done = true; 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); $rootScope.$emit('config.http.success', data);
} };
return response; return response;
}, function(response) { }, function(response) {
$rootScope.$emit('config.http.error', response); $rootScope.$emit('config.http.error', response);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论