瀏覽代碼

Checked token on Login

master
LeneS 5 年之前
父節點
當前提交
4d08b7b64a
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. 3
    2
      src/components/user/loginPage.vue

+ 3
- 2
src/components/user/loginPage.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <!-- eslint-disable max-len -->
3 3
   <div class="login-page">
4
-    <form id="signIn" method="POST">
4
+    <form id="signIn">
5 5
       <div class="form">
6 6
         <div>
7 7
           <h4>Login</h4>
@@ -79,13 +79,14 @@ export default {
79 79
       textErrors: 'Some error with the field',
80 80
       text: '',
81 81
       showPassword: false,
82
+      password: '',
82 83
     };
83 84
   },
84 85
   methods: {
85 86
     Login() {
86 87
       console.log(this.username + this.password);
87 88
       axios
88
-        .post('http://localhost:57260/api/user', {
89
+        .post('http://localhost:57260/api/register/authenticate', {
89 90
           username: this.username,
90 91
           password: this.password,
91 92
         })

Loading…
取消
儲存