Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Mail sent when creating user with "node create-user" #1206

Open
tgotowik opened this issue Apr 10, 2024 · 0 comments
Open

No Mail sent when creating user with "node create-user" #1206

tgotowik opened this issue Apr 10, 2024 · 0 comments

Comments

@tgotowik
Copy link
Contributor

Steps to Reproduce

  1. run ./bin/shell overleaf
  2. Change into the scripts directory: cd /overleaf/services/web/modules/server-ce-scripts/scripts
  3. Create user: node create-user --email=joe@example.com"

Expected Behaviour

A user should be creted and a mail with an activation URL should be sent to joe@example.com

Observed Behaviour

There is no email sent.

Technical Info

Overleaf version: 5.0.1

Hotfix

Assumption: Since the creation of the user happens asynchronously, the node process dies before it has created the user or sent the mail

  1. run ./bin/shell overleaf
  2. Edit: /overleaf/services/web/app/src/Features/User/UserRegistrationHandler.js:
    change line 117 from
    EmailHandler.promises.sendEmail('registered', {
    to:
    await EmailHandler.promises.sendEmail('registered', {
  3. exit the container: exit
  4. commit changes: docker commit overleaf overleaf/overleaf
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

No branches or pull requests

1 participant