Showing
1 changed file
with
4 additions
and
1 deletions
| ... | @@ -55,7 +55,10 @@ const SignIn = () => { | ... | @@ -55,7 +55,10 @@ const SignIn = () => { |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | const signIn = () => { | 57 | const signIn = () => { |
| 58 | - http.post('/login').then(response => { | 58 | + http.post('/login', { |
| 59 | + userId: username, | ||
| 60 | + password: password, | ||
| 61 | + }).then(response => { | ||
| 59 | const { success, access_token } = response.data | 62 | const { success, access_token } = response.data |
| 60 | if (success) { | 63 | if (success) { |
| 61 | localStorage.setItem('token', access_token) | 64 | localStorage.setItem('token', access_token) | ... | ... |
-
Please register or login to post a comment