From ba8b7c8aa268ff60958a60b2489a0cb8de14849c Mon Sep 17 00:00:00 2001 From: Stefan Yohansson Date: Thu, 24 Sep 2015 20:37:33 -0300 Subject: [PATCH] FS-8205 [verto_communicator] fix login config provision --- .../src/vertoService/services/configService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html5/verto/verto_communicator/src/vertoService/services/configService.js b/html5/verto/verto_communicator/src/vertoService/services/configService.js index 733b706039..2793cdb91d 100644 --- a/html5/verto/verto_communicator/src/vertoService/services/configService.js +++ b/html5/verto/verto_communicator/src/vertoService/services/configService.js @@ -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);