Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Cannot add an email address to an account #6618

@doc75

Description

@doc75

Context information

I am on a server (synapse + riot-web) hosted on a localhost machine (doing test currently before production deployment).
If I allow user registration, the user can specify a mail address right at account creation from riot-web and the validation is well received and account can be validated.

I want afterwards to control the account created on my server and therefore disable registration.
At account creation using register_new_matrix_user it is not possible to set the mail address.
So I want the user to add it later on.

Description

When adding a mail address to a user that did not specify it at registration (or created with register_new_matrix_user) the mail with validation link is received, message when clicking on the link is saying that validation is OK.
But mail address does not appear in preference of the user.

Steps to reproduce

  • create a user without a mail address (directly in riot-web app)
  • Login with this user account
  • Go to Preferences > General
  • Set mail address and click on Add
  • Click on the link in the mail you obtain a message saying: Your email has now been validated, please return to your client. You may now close this window.
  • Go back to the preferences
  • The mail address is empty.

If I look the database, I can see that the validation token is still present in the table threepid_validation_token

I can also see in the logs that nothing seems to be done in the DB:

2020-01-02 22:34:42,427 - synapse.access.http.8008 - 233 - INFO - GET-564 - ::ffff:172.18.0.7 - 8008 - Received request: GET /_matrix/client/unstable/add_threepid/email/submit_token?token=jwLytVDuwcKETAgysDFJNQmnNKFYALWT&client_secret=<redacted>&sid=RJHBkoouBFWbbHHh
2020-01-02 22:34:42,436 - synapse.access.http.8008 - 302 - INFO - GET-564 - ::ffff:172.18.0.7 - 8008 - {None} Processed request: 0.009sec/-0.000sec (0.004sec, 0.000sec) (0.000sec/0.005sec/1) 131B 200 "GET /_matrix/client/unstable/add_threepid/email/submit_token?token=jwLytVDuwcKETAgysDFJNQmnNKFYALWT&client_secret=<redacted>&sid=RJHBkoouBFWbbHHh HTTP/1.1" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0" [0 dbevts]

Version information

  • Homeserver: localhost (docker official image)

If not matrix.org:

  • Version: {"server_version": "1.7.1", "python_version": "3.7.5"}
  • Install method: docker official image
  • Platform: docker official image

If more information is needed, let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions