mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-17 11:44:38 -05:00
14 lines
241 B
JavaScript
14 lines
241 B
JavaScript
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;
|