You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/08/25 07:34:52 UTC

[cloudstack-primate] branch master updated: FIX - Add cluster - password is not masked (#613)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new bcdb9e9  FIX - Add cluster - password is not masked (#613)
bcdb9e9 is described below

commit bcdb9e937ee46a444f584c26f2d91574452281d5
Author: Hoang Nguyen <ho...@unitech.vn>
AuthorDate: Tue Aug 25 14:34:42 2020 +0700

    FIX - Add cluster - password is not masked (#613)
    
    * change vCenter Password from input type to password type
    
    * change API call for addCluster to POST
---
 src/views/infra/ClusterAdd.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/infra/ClusterAdd.vue b/src/views/infra/ClusterAdd.vue
index 67bbd12..7c80a52 100644
--- a/src/views/infra/ClusterAdd.vue
+++ b/src/views/infra/ClusterAdd.vue
@@ -73,7 +73,7 @@
 
         <div class="form__item">
           <div class="form__label">{{ $t('label.vcenterpassword') }}</div>
-          <a-input v-model="password"></a-input>
+          <a-input type="password" v-model="password"></a-input>
         </div>
 
         <div class="form__item">
@@ -223,7 +223,7 @@ export default {
 
       this.loading = true
       this.parentToggleLoading()
-      api('addCluster', {
+      api('addCluster', {}, 'POST', {
         zoneId: this.zoneId,
         hypervisor: this.hypervisor,
         clustertype: this.clustertype,