"Test SMTP" form saves settings instead of sending email on Enter #4940

Closed
opened 2026-03-07 20:07:28 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @nh2 on GitHub (Jun 8, 2022).

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). 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.
GiteaMirror added the enhancementbug labels 2026-03-07 20:07:28 -06: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.

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#4940