MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / get2faMethods

Method get2faMethods

server/controllers/UserController.js:674–685  ·  view source on GitHub ↗
(userId)

Source from the content-addressed store, hash-verified

672 }
673
674 get2faMethods(userId) {
675 return db.User2fa.findAll({
676 where: { user_id: userId, isEnabled: true },
677 attributes: { exclude: ["secret", "backup"] },
678 })
679 .then((methods) => {
680 return new Promise((resolve) => resolve(methods));
681 })
682 .catch((error) => {
683 return new Promise((resolve, reject) => reject(error));
684 });
685 }
686
687 async remove2faMethod(userId, methodId, password) {
688 const user = await this.findById(userId);

Callers 1

UserRoute.jsFile · 0.80

Calls 1

findAllMethod · 0.45

Tested by

no test coverage detected