MCPcopy Create free account
hub / github.com/Cv-Keep/cvkeep-backend / getForgotPassObject

Function getForgotPassObject

functions/user.js:256–266  ·  view source on GitHub ↗
(hash)

Source from the content-addressed store, hash-verified

254 },
255
256 getForgotPassObject(hash) {
257 return new Promise((resolve, reject) => {
258 ForgotPass.findOne({ hash}, async (error, data) => {
259 if (error || !data) {
260 return reject(error || 'error.invalidToken');
261 }
262
263 resolve(data);
264 });
265 });
266 },
267
268 validateForgottenPassHash(forgotPassObject) {
269 if (!forgotPassObject) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected