MCPcopy Create free account
hub / github.com/coderwhy/coderhub / handlePassword

Function handlePassword

src/middleware/user.middleware.js:25–30  ·  view source on GitHub ↗
(ctx, next)

Source from the content-addressed store, hash-verified

23}
24
25const handlePassword = async (ctx, next) => {
26 const { password } = ctx.request.body;
27 ctx.request.body.password = md5password(password)
28
29 await next();
30}
31
32module.exports = {
33 verifyUser,

Callers

nothing calls this directly

Calls 1

md5passwordFunction · 0.85

Tested by

no test coverage detected