[PR #7045] [CLOSED] Add authType field to Send API responses #32924

Closed
opened 2026-06-20 19:37:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/7045
Author: @jalenfran
Created: 4/1/2026
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • f3ecc8c Add authType field to Send API responses

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 src/db/models/send.rs (+4 -0)

📄 Description

Fixes #6976

Problem

All Sends were displaying as password-protected in the web vault regardless of their actual protection status.

Root Cause

The web-vault changed how it determines Send protection status in bitwarden/clients@9f74178. It now checks authType !== AuthType.None instead of checking for the presence of the password field, but Vaultwarden wasn't returning authType in its API responses.

Fix

Add authType to Send.to_json() using Bitwarden's AuthType enum:

  • 0 = Email (future email OTP support)
  • 1 = Password protected
  • 2 = None (no authentication required)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/7045 **Author:** [@jalenfran](https://github.com/jalenfran) **Created:** 4/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`f3ecc8c`](https://github.com/dani-garcia/vaultwarden/commit/f3ecc8c7bdb0e0e6d1adcce968524a8840630a2d) Add authType field to Send API responses ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/db/models/send.rs` (+4 -0) </details> ### 📄 Description Fixes #6976 ## Problem All Sends were displaying as password-protected in the web vault regardless of their actual protection status. ## Root Cause The web-vault changed how it determines Send protection status in bitwarden/clients@9f74178. It now checks `authType !== AuthType.None` instead of checking for the presence of the `password` field, but Vaultwarden wasn't returning `authType` in its API responses. ## Fix Add `authType` to `Send.to_json()` using Bitwarden's `AuthType` enum: - `0` = Email (future email OTP support) - `1` = Password protected - `2` = None (no authentication required) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-06-20 19:37:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#32924