Changing users email address

Four lines, just as shown in the linked topic:

  1. cd /var/discourse
  2. sudo ./launcher enter app
  3. rails c
  4. UserEmail.find_by(email: "oid@example.com").update(email: "new@example.com")