mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-31 02:08:20 +02:00 
			
		
		
		
	hide already approved (or declined) devices (#5467)
This commit is contained in:
		| @@ -150,6 +150,7 @@ impl AuthRequest { | |||||||
|             auth_requests::table |             auth_requests::table | ||||||
|                 .filter(auth_requests::user_uuid.eq(user_uuid)) |                 .filter(auth_requests::user_uuid.eq(user_uuid)) | ||||||
|                 .filter(auth_requests::request_device_identifier.eq(device_uuid)) |                 .filter(auth_requests::request_device_identifier.eq(device_uuid)) | ||||||
|  |                 .filter(auth_requests::approved.is_null()) | ||||||
|                 .order_by(auth_requests::creation_date.desc()) |                 .order_by(auth_requests::creation_date.desc()) | ||||||
|                 .first::<AuthRequestDb>(conn).ok().from_db() |                 .first::<AuthRequestDb>(conn).ok().from_db() | ||||||
|         }} |         }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user