Просмотр исходного кода

Can insert password and confirm password seperately

master
Lene Scholtz 5 лет назад
Родитель
Сommit
69c1499cd2
1 измененных файлов: 4 добавлений и 13 удалений
  1. 4
    13
      src/components/user/registerPage.vue

+ 4
- 13
src/components/user/registerPage.vue Просмотреть файл

@@ -118,7 +118,7 @@
118 118
                 <input
119 119
                   class="form-control"
120 120
                   :type="isPasswordShown"
121
-                  v-model="registerIndividual.password"
121
+                  v-model="registerIndividual.confirmpassword"
122 122
                   id="confirmpassword"
123 123
                   placeholder="Confirm Password"
124 124
                   name="confirmpassword"
@@ -146,11 +146,7 @@
146 146
               <button @click="SubmitData()" class="btn btn-b-n" type="submit">Submit</button>
147 147
             </div>
148 148
             <div class="col-md-2 offset-md-1">
149
-              <button
150
-                @click="Close(routerGoTo('/user/login'))"
151
-                class="btn btn-b-n"
152
-                type="submit"
153
-              >Cancel</button>
149
+              <button @click="Close()" class="btn btn-b-n" type="submit">Cancel</button>
154 150
             </div>
155 151
           </div>
156 152
         </div>
@@ -169,11 +165,11 @@ export default {
169 165
   name: 'PrivateIndividual',
170 166
   data() {
171 167
     return {
172
-      user: null,
168
+      user: undefined,
173 169
       isPasswordShown: 'password',
174 170
       selectItems: [{ text: 'password', value: 0 }],
175 171
       selectErrors: 'Some error with the field',
176
-      select: null,
172
+      select: undefined,
177 173
       textErrors: 'Some error with the field',
178 174
       text: '',
179 175
       showPassword: false,
@@ -195,11 +191,6 @@ export default {
195 191
       'updateIndividual',
196 192
       'clearIndividual',
197 193
     ]),
198
-
199
-    routerGoTo(goTo) {
200
-      this.$emit('routerGoTo', goTo);
201
-    },
202
-
203 194
     togglePassword() {
204 195
       this.showPassword = true;
205 196
       this.isPasswordShown = 'text';

Загрузка…
Отмена
Сохранить