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

fix CORS

parent 2f21fd36
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
export default { export default {
components: { Nav }, components: { Nav },
}; };
this.$router.go()
// export default { // export default {
// name: "Home", // name: "Home",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
background-color: #8fc2ff; background-color: #8fc2ff;
" "
> >
<div id="form-group"> <div id="form-login">
<form @submit.prevent="login"> <form @submit.prevent="login">
<h1 class="h3 mb-2 fw-normal" style="text-align: center">Sign In</h1> <h1 class="h3 mb-2 fw-normal" style="text-align: center">Sign In</h1>
<input <input
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
type="password" type="password"
class="form-control mb-3" class="form-control mb-3"
placeholder="password" placeholder="password"
min=""
required required
/> />
<b-form-checkbox <b-form-checkbox
...@@ -66,6 +67,7 @@ export default { ...@@ -66,6 +67,7 @@ export default {
return { return {
email: "", email: "",
password: "", password: "",
status: null,
error: null, error: null,
}; };
}, },
...@@ -91,6 +93,7 @@ export default { ...@@ -91,6 +93,7 @@ export default {
} }
} catch (e) { } catch (e) {
this.error = "Username or Password not valid"; this.error = "Username or Password not valid";
this.$router.push("/");
} }
// async login() { // async login() {
...@@ -110,8 +113,16 @@ export default { ...@@ -110,8 +113,16 @@ export default {
}, },
}; };
</script> </script>
<!-- <script>
var demo = new Vue({
el: '#password',
data: {
min:6 ,
}
});
</script> -->
<style scoped> <style scoped>
#form-group { #form-login {
height: 50%; height: 50%;
width: 25%; width: 25%;
/* border: 1px solid black; */ /* border: 1px solid black; */
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
type="password" type="password"
class="form-control mb-2" class="form-control mb-2"
placeholder="Confirm password" placeholder="Confirm password"
v-model="confirm_password"
required required
/> />
<div class="button"> <div class="button">
...@@ -67,6 +68,7 @@ export default { ...@@ -67,6 +68,7 @@ export default {
name: "", name: "",
email: "", email: "",
password: "", password: "",
confirm_password: ""
}; };
}, },
methods: { methods: {
...@@ -80,6 +82,7 @@ export default { ...@@ -80,6 +82,7 @@ export default {
name: this.name, name: this.name,
email: this.email, email: this.email,
password: this.password, password: this.password,
confirm_password: this.confirm_password
}), }),
}); });
this.$router.push("/"); 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