0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-04-01 02:42:49 -05:00

hide already approved (or declined) devices

This commit is contained in:
Stefan Melmuk 2025-01-27 01:43:53 +01:00
parent 2903a3a13a
commit 58b6d0ea3d
No known key found for this signature in database
GPG key ID: 817020C608FE9C09

View file

@ -150,6 +150,7 @@ impl AuthRequest {
auth_requests::table
.filter(auth_requests::user_uuid.eq(user_uuid))
.filter(auth_requests::request_device_identifier.eq(device_uuid))
.filter(auth_requests::approved.is_null())
.order_by(auth_requests::creation_date.desc())
.first::<AuthRequestDb>(conn).ok().from_db()
}}