Commit 30643861 authored by TTS Kieu Tuan Anh's avatar TTS Kieu Tuan Anh

fix CORS

parent 2f21fd36
This diff is collapsed.
......@@ -14,6 +14,7 @@
export default {
components: { Nav },
};
this.$router.go()
// export default {
// name: "Home",
......
......@@ -11,7 +11,7 @@
background-color: #8fc2ff;
"
>
<div id="form-group">
<div id="form-login">
<form @submit.prevent="login">
<h1 class="h3 mb-2 fw-normal" style="text-align: center">Sign In</h1>
<input
......@@ -28,6 +28,7 @@
type="password"
class="form-control mb-3"
placeholder="password"
min=""
required
/>
<b-form-checkbox
......@@ -66,6 +67,7 @@ export default {
return {
email: "",
password: "",
status: null,
error: null,
};
},
......@@ -91,6 +93,7 @@ export default {
}
} catch (e) {
this.error = "Username or Password not valid";
this.$router.push("/");
}
// async login() {
......@@ -110,8 +113,16 @@ export default {
},
};
</script>
<!-- <script>
var demo = new Vue({
el: '#password',
data: {
min:6 ,
}
});
</script> -->
<style scoped>
#form-group {
#form-login {
height: 50%;
width: 25%;
/* border: 1px solid black; */
......
......@@ -45,6 +45,7 @@
type="password"
class="form-control mb-2"
placeholder="Confirm password"
v-model="confirm_password"
required
/>
<div class="button">
......@@ -67,6 +68,7 @@ export default {
name: "",
email: "",
password: "",
confirm_password: ""
};
},
methods: {
......@@ -80,6 +82,7 @@ export default {
name: this.name,
email: this.email,
password: this.password,
confirm_password: this.confirm_password
}),
});
this.$router.push("/");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment