mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-11-03 19:58:20 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			170 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			170 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
UPDATE users
 | 
						|
SET totp_secret = (
 | 
						|
    SELECT twofactor.data FROM twofactor
 | 
						|
    WHERE twofactor.type = 0 
 | 
						|
    AND twofactor.user_uuid = users.uuid
 | 
						|
);
 | 
						|
 | 
						|
DROP TABLE twofactor; |