1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 13:40:06 +00:00

trim password whitespace in edit command

This commit is contained in:
John Harrington
2026-01-16 10:53:43 -07:00
parent aa241bf826
commit 86f1c6f652

View File

@@ -64,7 +64,7 @@ export class SendEditCommand {
// Infer authType based on emails/password (mutually exclusive)
const hasEmails = req.emails != null && req.emails.length > 0;
const hasPassword = req.password != null && req.password !== "";
const hasPassword = req.password != null && req.password.trim() !== "";
if (hasEmails && hasPassword) {
return Response.badRequest("--password and --emails are mutually exclusive.");