[GH-ISSUE #587] Configured email disable enable resets email settings. #385

Closed
opened 2026-03-03 01:28:38 +03:00 by kerem · 13 comments
Owner

Originally created by @mannp on GitHub (Aug 26, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/587

Previously working email seems to now be causing me problems.

Issue is, why reset the whole email config when selecting disable/enable?

I would have expected my existing settings to remain but just be disabled.

Or a warning to a user that their current settings will be lost, so save them elsewhere :)

Originally created by @mannp on GitHub (Aug 26, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/587 Previously working email seems to now be causing me problems. Issue is, why reset the whole email config when selecting disable/enable? I would have expected my existing settings to remain but just be disabled. Or a warning to a user that their current settings will be lost, so save them elsewhere :)
kerem closed this issue 2026-03-03 01:28:38 +03:00
Author
Owner

@dani-garcia commented on GitHub (Aug 27, 2019):

Now that you mention it yeah it doesn't make much sense to delete the disabled fields I'm not sure why I chose to do that. We could change that easy but we'll also need to make sure that the settings respect the master toggle, I'm pretty sure the mail settings do, but others like the yubico and duo might not.

<!-- gh-comment-id:525449299 --> @dani-garcia commented on GitHub (Aug 27, 2019): Now that you mention it yeah it doesn't make much sense to delete the disabled fields I'm not sure why I chose to do that. We could change that easy but we'll also need to make sure that the settings respect the master toggle, I'm pretty sure the mail settings do, but others like the yubico and duo might not.
Author
Owner

@mannp commented on GitHub (Aug 27, 2019):

I am sure there was a good reason at the time for that approach :)

Not entirely sure what the master toggle is and I don't use yubico or duo yet, but can understand why you want consistency.

<!-- gh-comment-id:525452633 --> @mannp commented on GitHub (Aug 27, 2019): I am sure there was a good reason at the time for that approach :) Not entirely sure what the master toggle is and I don't use yubico or duo yet, but can understand why you want consistency.
Author
Owner

@lorenzschmid commented on GitHub (Aug 30, 2019):

Could you please elaborate on which settings exactly changed and how one can revert this?

I'm not sure if my issue is related but since recently I receive the error message "Error building email. invalid email address" when trying to log in. This happens even on previously working (and still active) accounts. Even the admin account is affected.

<!-- gh-comment-id:526464381 --> @lorenzschmid commented on GitHub (Aug 30, 2019): Could you please elaborate on which settings exactly changed and how one can revert this? I'm not sure if my issue is related but since recently I receive the error message "Error building email. invalid email address" when trying to log in. This happens even on previously working (and still active) accounts. Even the admin account is affected.
Author
Owner

@mannp commented on GitHub (Aug 30, 2019):

All settings get deleted when you.toggle enable / disable.

<!-- gh-comment-id:526499936 --> @mannp commented on GitHub (Aug 30, 2019): All settings get deleted when you.toggle enable / disable.
Author
Owner

@lorenzschmid commented on GitHub (Aug 30, 2019):

Thanks for the quick reply. Which settings do you mean? And which toggle are you talking about?

<!-- gh-comment-id:526504584 --> @lorenzschmid commented on GitHub (Aug 30, 2019): Thanks for the quick reply. Which settings do you mean? And which toggle are you talking about?
Author
Owner

@mannp commented on GitHub (Aug 30, 2019):

Admin panel /admin.. email settings has an option to enable or disable all your email settings.

<!-- gh-comment-id:526512076 --> @mannp commented on GitHub (Aug 30, 2019): Admin panel /admin.. email settings has an option to enable or disable all your email settings.
Author
Owner

@lorenzschmid commented on GitHub (Aug 30, 2019):

Thanks a lot. I guess in this case my issue is not related.

<!-- gh-comment-id:526514250 --> @lorenzschmid commented on GitHub (Aug 30, 2019): Thanks a lot. I guess in this case my issue is not related.
Author
Owner

@dani-garcia commented on GitHub (Aug 31, 2019):

@mannp In the latest commit, disabling the toggle won't delete the existing values anymore.

@lorenzschmid If you are receving that error while logging in, it's because we can't send the new device login email because apparently the mail library doesn't think the email format is valid, does the email address have any weird characters? You can make the server ignore any errors sending the login email seting REQUIRE_DEVICE_EMAIL=false

<!-- gh-comment-id:526842100 --> @dani-garcia commented on GitHub (Aug 31, 2019): @mannp In the latest commit, disabling the toggle won't delete the existing values anymore. @lorenzschmid If you are receving that error while logging in, it's because we can't send the new device login email because apparently the mail library doesn't think the email format is valid, does the email address have any weird characters? You can make the server ignore any errors sending the login email seting `REQUIRE_DEVICE_EMAIL=false`
Author
Owner

@vplme commented on GitHub (Aug 31, 2019):

You can make the server ignore any errors sending the login email seting REQUIRE_DEVICE_EMAIL=true

I think REQUIRE_DEVICE_EMAIL=false will ignore any email errors while logging in which is the default. Unless I've made a mistake somewhere.

<!-- gh-comment-id:526846375 --> @vplme commented on GitHub (Aug 31, 2019): > You can make the server ignore any errors sending the login email seting REQUIRE_DEVICE_EMAIL=true I think `REQUIRE_DEVICE_EMAIL=false` will ignore any email errors while logging in which is the default. Unless I've made a mistake somewhere. - https://github.com/dani-garcia/bitwarden_rs/blob/c07c9995eacda130382a65910bd661551849c2fa/src/api/identity.rs#L107 - https://github.com/dani-garcia/bitwarden_rs/blob/e3404dd3222ba703d9810d585f161c06f6cb6fc7/src/config.rs#L277
Author
Owner

@dani-garcia commented on GitHub (Aug 31, 2019):

Oops yeah my mistake, edited the comment.

<!-- gh-comment-id:526846558 --> @dani-garcia commented on GitHub (Aug 31, 2019): Oops yeah my mistake, edited the comment.
Author
Owner

@mannp commented on GitHub (Aug 31, 2019):

Thanks @dani-garcia for the quick fix :)

Is REQUIRE_DEVICE_EMAIL=false default as I don't specifically set it and disabling email allowed me to login again, as well as removing 2FA too.... I didn't change REQUIRE_DEVICE_EMAIL at all.

<!-- gh-comment-id:526853839 --> @mannp commented on GitHub (Aug 31, 2019): Thanks @dani-garcia for the quick fix :) Is REQUIRE_DEVICE_EMAIL=false default as I don't specifically set it and disabling email allowed me to login again, as well as removing 2FA too.... I didn't change REQUIRE_DEVICE_EMAIL at all.
Author
Owner

@MagicFab commented on GitHub (Dec 17, 2019):

Has this been fixed in the current version ?

<!-- gh-comment-id:566518042 --> @MagicFab commented on GitHub (Dec 17, 2019): Has this been fixed in the current version ?
Author
Owner

@dani-garcia commented on GitHub (May 13, 2020):

This should be fixed yes.

<!-- gh-comment-id:628279914 --> @dani-garcia commented on GitHub (May 13, 2020): This should be fixed yes.
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#385
No description provided.