Directus: Email verification link not working

Created on 5 Jan 2021  路  3Comments  路  Source: directus/directus

Trying to reset my password from the back end. Email configured to use SMTP. After I get email, there is no project logo display (image not found) and the link is: mail://admin/reset-password?token=....

Actual: no prefixed project URL at the beginning, link fails to open:
Expected: link should have project URL, etc. https://example.com/admin/reset-password?token=....


Project details

Directus Version: 9.0.0-rc.24
Environment: production
OS: Linux 5.4.0-58-generic
Node: 14.15.2
Running in Docker

Question

All 3 comments

Additionally, if the host is replaced for the correct one, there is a route error.

{"errors":[{"message":"Route /reset-password doesn't exist.","extensions":{"code":"ROUTE_NOT_FOUND"}}]}

@andriusign Make sure you have the PUBLIC_URL env var set correctly

Indeed you are right. I thought it was enough to have "/" for a value. Updated my _.env_ file:

Note there is no trailing slash "/" for the URL. I got an email with the correct link afterwards. Thanks.

However I have noticed in this email template that the image is missing. Tried setting .svg and .png file as project logo. Inspecting the email shows _img_ tag with no _src_.

1
2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Varulv1997 picture Varulv1997  路  4Comments

altezza04 picture altezza04  路  4Comments

lluishi93 picture lluishi93  路  3Comments

dfgkzhang picture dfgkzhang  路  4Comments

christiaangoossens picture christiaangoossens  路  4Comments