mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-01 04:00:40 +00:00
03b2d8d521
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
18 lines
379 B
JavaScript
18 lines
379 B
JavaScript
const { R } = require("redbean-node");
|
|
|
|
class TwoFA {
|
|
|
|
/**
|
|
* Disable 2FA for specified user
|
|
* @param {number} userID ID of user to disable
|
|
* @returns {Promise<void>}
|
|
*/
|
|
static async disable2FA(userID) {
|
|
return await R.exec("UPDATE `user` SET twofa_status = 0 WHERE id = ? ", [
|
|
userID,
|
|
]);
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = TwoFA;
|