{"ErrorModel":{"Message":"Email cannot be changed to this address","Object":"error"},"Message":"","Object":"error","ValidationErrors":{"":["Email cannot be changed to this address"]},"error":"","error_description":""}
Server side log looks like this:
[2020-01-01 03:32:43][error][ERROR] Email cannot be changed to this address
[2020-01-01 03:32:43][response][INFO] POST /api/accounts/email-token (post_email_token) => 400 Bad Request
Your environment
Bitwarden_rs version: 1.13.0-95dd1cd7
Install method: docker
Clients used: web UI
Reverse proxy and version: probably not applicable
Version of mysql/postgresql: probably not applicable
Other relevant information:
Steps to reproduce
Change email address from the web under settings
Expected behaviour
The email address changed.
Actual behaviour
An error appear in the web:
An error has occurred.
Email cannot be changed to this address
Originally created by @yegle on GitHub (Jan 1, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/792
# Subject of the issue
It looks like I'm unable to change the email address from the settings page.
The request payload looks like this:
```
{"newEmail":"foo@example.com","masterPasswordHash":"some-hash"}
```
The response payload looks like this:
```
{"ErrorModel":{"Message":"Email cannot be changed to this address","Object":"error"},"Message":"","Object":"error","ValidationErrors":{"":["Email cannot be changed to this address"]},"error":"","error_description":""}
```
Server side log looks like this:
```
[2020-01-01 03:32:43][error][ERROR] Email cannot be changed to this address
[2020-01-01 03:32:43][response][INFO] POST /api/accounts/email-token (post_email_token) => 400 Bad Request
```
### Your environment
* Bitwarden_rs version: 1.13.0-95dd1cd7
* Install method: docker
* Clients used: web UI
* Reverse proxy and version: probably not applicable
* Version of mysql/postgresql: probably not applicable
* Other relevant information:
### Steps to reproduce
Change email address from the web under settings
### Expected behaviour
The email address changed.
### Actual behaviour
An error appear in the web:
An error has occurred.
Email cannot be changed to this address
If I allow signups I'm then able to change an email address.
<!-- gh-comment-id:570696047 -->
@aneisch commented on GitHub (Jan 3, 2020):
Seeing this as well. It looks like this is due to the following line:
**[https://github.com/dani-garcia/bitwarden_rs/blob/8d1b72b9512b90775e671b7ba08cd552a0aabd13/src/api/core/accounts.rs#L374](https://github.com/dani-garcia/bitwarden_rs/blob/8d1b72b9512b90775e671b7ba08cd552a0aabd13/src/api/core/accounts.rs#L374)**
If I allow signups I'm then able to change an email address.
I think this might be a problem in can_signup_user(). I believe the function should return true if the whitelist is empty. Right now it only returns true if a match for the domain is found.
<!-- gh-comment-id:570951978 -->
@tomuta commented on GitHub (Jan 5, 2020):
I think this might be a problem in `can_signup_user()`. I believe the function should return `true` if the whitelist is empty. Right now it only returns `true` if a match for the domain is found.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @yegle on GitHub (Jan 1, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/792
Subject of the issue
It looks like I'm unable to change the email address from the settings page.
The request payload looks like this:
The response payload looks like this:
Server side log looks like this:
Your environment
Steps to reproduce
Change email address from the web under settings
Expected behaviour
The email address changed.
Actual behaviour
An error appear in the web:
An error has occurred.
Email cannot be changed to this address
@WinkelB commented on GitHub (Jan 3, 2020):
Having the Same Problem.
@aneisch commented on GitHub (Jan 3, 2020):
Seeing this as well. It looks like this is due to the following line:
https://github.com/dani-garcia/bitwarden_rs/blob/8d1b72b9512b90775e671b7ba08cd552a0aabd13/src/api/core/accounts.rs#L374
If I allow signups I'm then able to change an email address.
@tomuta commented on GitHub (Jan 5, 2020):
I think this might be a problem in
can_signup_user(). I believe the function should returntrueif the whitelist is empty. Right now it only returnstrueif a match for the domain is found.@dani-garcia commented on GitHub (Jan 28, 2020):
This should be fixed now in the latest master, thanks to @tomuta