Toggle navigation
Toggle navigation
This project
Loading...
Sign in
정민우
/
vps_service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
ch4n3.yoon
2021-05-14 17:35:39 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
d7e88829d472ddb1237936e302c60f178b6d3f9c
d7e88829
2 parents
0f64cd15
6c8d9575
Merge branch 'frontend'
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
frontend/src/components/SignIn.js
frontend/src/components/SignIn.js
View file @
d7e8882
...
...
@@ -55,7 +55,10 @@ const SignIn = () => {
}
const
signIn
=
()
=>
{
http
.
post
(
'/login'
).
then
(
response
=>
{
http
.
post
(
'/login'
,
{
userId
:
username
,
password
:
password
,
}).
then
(
response
=>
{
const
{
success
,
access_token
}
=
response
.
data
if
(
success
)
{
localStorage
.
setItem
(
'token'
,
access_token
)
...
...
Please
register
or
login
to post a comment