Skip to content

fix(web): allow registering system without providing an email#2172

Merged
dgdavid merged 2 commits intomasterfrom
fix-registration-form
Mar 18, 2025
Merged

fix(web): allow registering system without providing an email#2172
dgdavid merged 2 commits intomasterfrom
fix-registration-form

Conversation

@dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Mar 18, 2025

The registration form was updated in PR #2147 to make the email field optional, neither rendering nor validating it unless the user opts to provide an email address.

However, the process was failing silently due to the backend complaining about a malformed JSON.

Failed to deserialize the JSON body into the target type: missing
field email at line 1 column 16

This PR fixes the issue by sending the email as an empty string when the user chooses not to provide it.

dgdavid added 2 commits March 18, 2025 10:52
The registration form was updated in PR #2147 to make the email field
optional, neither rendering nor validating it unless the user opts to
provide an email address.

However, the process was failing silently due to the backend complaining
about a malformed JSON.

> Failed to deserialize the JSON body into the target type: missing
> field `email` at line 1 column 16

This commit fixes the issue by sending the email as an empty string when
the user chooses not to provide it.
@dgdavid dgdavid merged commit 47cc076 into master Mar 18, 2025
6 checks passed
@dgdavid dgdavid deleted the fix-registration-form branch March 18, 2025 11:08
@imobachgs imobachgs mentioned this pull request Mar 27, 2025
imobachgs added a commit that referenced this pull request Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants