Fix a few things with the form
This commit is contained in:
parent
c1abc028e1
commit
135775cfc6
@ -37,6 +37,7 @@
|
|||||||
required
|
required
|
||||||
placeholder="Enter a password"
|
placeholder="Enter a password"
|
||||||
:state="validPassword"
|
:state="validPassword"
|
||||||
|
type="password"
|
||||||
></b-form-input>
|
></b-form-input>
|
||||||
<b-form-invalid-feedback :state="validPassword">
|
<b-form-invalid-feedback :state="validPassword">
|
||||||
Your password must be at least 6 characters long.
|
Your password must be at least 6 characters long.
|
||||||
@ -50,9 +51,10 @@
|
|||||||
required
|
required
|
||||||
placeholder="Confirm your password"
|
placeholder="Confirm your password"
|
||||||
:state="passwordEquals"
|
:state="passwordEquals"
|
||||||
|
type="password"
|
||||||
></b-form-input>
|
></b-form-input>
|
||||||
<b-form-invalid-feedback :state="passwordEquals">
|
<b-form-invalid-feedback :state="passwordEquals">
|
||||||
Your password must be at least 6 characters long.
|
Both passwords must be equals.
|
||||||
</b-form-invalid-feedback>
|
</b-form-invalid-feedback>
|
||||||
</b-form-group>
|
</b-form-group>
|
||||||
|
|
||||||
@ -95,7 +97,6 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
console.log("submitted")
|
|
||||||
if (this.validInput) {
|
if (this.validInput) {
|
||||||
console.log("Valid")
|
console.log("Valid")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user