FS-8205 [verto_communicator] fix login config provision
This commit is contained in:
parent
8d15e0a3d7
commit
ba8b7c8aa2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue