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-26 17:15:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0c9f0aae43a0f58e7b825dc31623b4cbbd7c2ca4
0c9f0aae
1 parent
16770197
update resetPassword
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
back/src/api/User/resetPassword/resetPassword.js
back/src/api/User/resetPassword/resetPassword.js
View file @
0c9f0aa
...
...
@@ -4,6 +4,7 @@ import bcrypt from "bcryptjs";
export
default
{
Mutation
:
{
resetPassword
:
async
(
_
,
args
,
{
request
})
=>
{
console
.
log
(
request
);
isAuthenticated
(
request
);
const
{
emailSecret
,
email
,
passwordOne
,
passwordTwo
}
=
args
;
const
user
=
await
prisma
.
user
.
findOne
({
...
...
Please
register
or
login
to post a comment