]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8205 [verto_communicator] fix login config provision
authorStefan Yohansson <stefan@evolux.net.br>
Thu, 24 Sep 2015 23:37:33 +0000 (20:37 -0300)
committerKen Rice <krice@freeswitch.org>
Fri, 25 Sep 2015 15:08:09 +0000 (10:08 -0500)
html5/verto/verto_communicator/src/vertoService/services/configService.js

index 733b70603932fcd316006c22b9f0dda589c44dc9..2793cdb91d2db9bf8f4ca03420566745804d0add 100644 (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);