[GH-ISSUE #2542] "Test SMTP" form saves settings instead of sending email on Enter #1300

Closed
opened 2026-03-03 02:08:01 +03:00 by kerem · 1 comment
Owner

Originally created by @nh2 on GitHub (Jun 8, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2542

Originally assigned to: @BlackDex on GitHub.

Hi, thanks for Vaultwarden!

On the Admin panel, if you enter an email address into the <input id="smtp-test-email"> and hit Enter, like this:

image

it does not trigger Send test email as expected, but instead tries to save the general admin settings, which is a bit confusing.

I believe the test email <input> needs its own <form> to submit correctly on Enter.

Originally created by @nh2 on GitHub (Jun 8, 2022). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/2542 Originally assigned to: @BlackDex on GitHub. Hi, thanks for Vaultwarden! On the Admin panel, if you enter an email address into the `<input id="smtp-test-email">` and hit <kbd>Enter</kdb>, like this: ![image](https://user-images.githubusercontent.com/399535/172615871-d4ce1f21-8521-4b3e-b632-a71dcfdab2b4.png) it does not trigger `Send test email` as expected, but instead tries to save the general admin settings, which is a bit confusing. I believe the test email `<input>` needs its own `<form>` to submit correctly on Enter.
kerem 2026-03-03 02:08:01 +03:00
Author
Owner

@BlackDex commented on GitHub (Jun 8, 2022):

Thanks for the report.
A <form> within a <form> is not allowed, but i think i can fix something.
I will take a look at it this evening.

<!-- gh-comment-id:1149885693 --> @BlackDex commented on GitHub (Jun 8, 2022): Thanks for the report. A `<form>` within a `<form>` is not allowed, but i think i can fix something. I will take a look at it this evening.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#1300
No description provided.