ソースを参照

Can insert password and confirm password seperately

master
Lene Scholtz 5年前
コミット
69c1499cd2
1個のファイルの変更4行の追加13行の削除
  1. 4
    13
      src/components/user/registerPage.vue

+ 4
- 13
src/components/user/registerPage.vue ファイルの表示

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

読み込み中…
キャンセル
保存