Validate all needed fields for client API login #1742

Closed
opened 2026-04-06 02:18:17 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @BlackDex on 2/16/2023

During the client API login we need to have a device_identifier, device_name and device_type.
When these were not provided Vaultwarden would panic.

This PR add checks for these fields and makes sure it returns a better error message instead of causing a panic.

*Originally created by @BlackDex on 2/16/2023* During the client API login we need to have a `device_identifier`, `device_name` and `device_type`. When these were not provided Vaultwarden would panic. This PR add checks for these fields and makes sure it returns a better error message instead of causing a panic.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1742