Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-04-19 17:04:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
368716033662a8dd2e7b0eed7a11f7ffa53de784
36871603
1 parent
12584159
update secretOrPrivateKey value
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
back/src/api/User/createAccount/createAccount.js
back/src/api/User/createAccount/createAccount.js
View file @
3687160
...
...
@@ -16,9 +16,12 @@ export default {
password
:
encryptPw
,
},
});
const
token
=
jwt
.
sign
({
id
:
user
.
id
,
});
const
token
=
jwt
.
sign
(
{
id
:
user
.
id
,
},
process
.
env
.
JWT_SECRET
);
return
{
token
,
user
};
},
},
...
...
Please
register
or
login
to post a comment