uptime-kuma/server/2fa.js

14 lines
241 B
JavaScript
Raw Normal View History

2021-11-18 13:22:03 +03:00
const { R } = require("redbean-node");
class TwoFA {
static async disable2FA(userID) {
return await R.exec("UPDATE `user` SET twofa_status = 0 WHERE id = ? ", [
userID,
]);
}
}
module.exports = TwoFA;