You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
241 B
14 lines
241 B
3 years ago
|
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;
|