mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			290 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			290 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { checkLogin } = require("./util-server");
 | 
						|
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;
 |