MCPcopy Create free account
hub / github.com/dhatGuy/PERN-Store / resetPassword

Function resetPassword

server/controllers/auth.controller.js:93–102  ·  view source on GitHub ↗
(req, res)

Source from the content-addressed store, hash-verified

91};
92
93const resetPassword = async (req, res) => {
94 const { password, password2, token, email } = req.body;
95
96 await authService.resetPassword(password, password2, token, email);
97
98 res.json({
99 status: "OK",
100 message: "Password reset. Please login with your new password.",
101 });
102};
103
104module.exports = {
105 createAccount,

Callers

nothing calls this directly

Calls 1

resetPasswordMethod · 0.45

Tested by

no test coverage detected