Pārlūkot izejas kodu

Checked token on Login

master
LeneS 5 gadus atpakaļ
vecāks
revīzija
4d08b7b64a
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3
    2
      src/components/user/loginPage.vue

+ 3
- 2
src/components/user/loginPage.vue Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt