]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8205 [verto_communicator] fix login with config provision
authorStefan Yohansson <stefan@evolux.net.br>
Thu, 24 Sep 2015 23:04:04 +0000 (20:04 -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 0f2f4fcce053e4a24ae19e7aecd23d6301aafe07..58fa7ccbbec2c056e8b509c8413b198ca38ba04f 100644 (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);