File tree Expand file tree Collapse file tree 1 file changed +32
-38
lines changed Expand file tree Collapse file tree 1 file changed +32
-38
lines changed Original file line number Diff line number Diff line change 11<template >
22 <form @submit.prevent =" registerUser" >
3- <div class =" mb-2" >
4- <label for =" name" class =" text-sm text-gray-500" >Name</label >
5- <input
6- type =" text"
7- id =" name"
8- v-model =" name"
9- class =" block w-full px-3 py-2 placeholder-gray-400 border border-gray-300 rounded-md shadow-sm appearance-none focus:outline-none focus:ring-blue-500 focus:border-blue-500"
10- />
11- </div >
12- <div class =" mb-2" >
13- <label for =" email" class =" text-sm text-gray-500" >Email</label >
14- <input
15- type =" email"
16- id =" email"
17- v-model =" email"
18- class =" block w-full px-3 py-2 placeholder-gray-400 border border-gray-300 rounded-md shadow-sm appearance-none focus:outline-none focus:ring-blue-500 focus:border-blue-500"
19- />
20- </div >
21- <div class =" mb-2" >
22- <label for =" password" class =" text-sm text-gray-500" >Password</label >
23- <input
24- type =" password"
25- id =" password"
26- v-model =" password"
27- class =" block w-full px-3 py-2 placeholder-gray-400 border border-gray-300 rounded-md shadow-sm appearance-none focus:outline-none focus:ring-blue-500 focus:border-blue-500"
28- />
29- </div >
30- <div class =" mb-4" >
31- <label for =" password-confirm" class =" text-sm text-gray-500"
32- >Confirm Password</label
33- >
34- <input
35- type =" password"
36- id =" password-confirm"
37- v-model =" passwordConfirm"
38- class =" block w-full px-3 py-2 placeholder-gray-400 border border-gray-300 rounded-md shadow-sm appearance-none focus:outline-none focus:ring-blue-500 focus:border-blue-500"
39- />
40- </div >
3+ <BaseInput
4+ type =" text"
5+ label =" Name"
6+ name =" name"
7+ v-model =" name"
8+ placeholder =" Luke Skywalker"
9+ class =" mb-2"
10+ />
11+ <BaseInput
12+ type =" email"
13+ label =" Email"
14+ name =" email"
15+ v-model =" email"
16+ 17+ class =" mb-2"
18+ />
19+ <BaseInput
20+ type =" password"
21+ label =" Password"
22+ name =" password"
23+ v-model =" password"
24+ class =" mb-2"
25+ />
26+ <BaseInput
27+ type =" password"
28+ label =" Confirm Password"
29+ name =" password-confirm"
30+ v-model =" passwordConfirm"
31+ class =" mb-4"
32+ />
4133 <BaseBtn type =" submit" text =" Register" />
4234 <FlashMessage :message =" message" :error =" error" />
4335 </form >
4638<script >
4739import { getError } from " @/utils/helpers" ;
4840import BaseBtn from " @/components/BaseBtn" ;
41+ import BaseInput from " @/components/BaseInput" ;
4942import AuthService from " @/services/AuthService" ;
5043import FlashMessage from " @/components/FlashMessage" ;
5144
5245export default {
5346 name: " RegisterForm" ,
5447 components: {
5548 BaseBtn,
49+ BaseInput,
5650 FlashMessage,
5751 },
5852 data () {
You can’t perform that action at this time.
0 commit comments