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

Function getForgotPassCompleteData

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

Source from the content-addressed store, hash-verified

280 },
281
282 getForgotPassCompleteData(hash) {
283 return new Promise(async (resolve, reject) => {
284 const forgotPassObj = await this.getForgotPassObject(hash).catch(error => log('error', error));
285 const isValidHash = forgotPassObj && this.validateForgottenPassHash(forgotPassObj);
286 const user = forgotPassObj && await this.get(forgotPassObj.email).catch(error => log('error', error));
287
288 if (!forgotPassObj || !isValidHash || !user) {
289 return reject(false);
290 }
291
292 resolve({ user, isValidHash, forgotPassObj });
293 });
294 },
295
296 setAvatar(userEmail, file) {
297 return new Promise(async (resolve, reject) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected