Skip to content

publicServerURL has no effect on link sent in verification email #4671

Closed
@anandundavia

Description

@anandundavia

Issue Description

The publicServerURL has no effect on the verification link sent in the email.
I have enabled email verification in my project.
I have set publicServerURL to 'http://abc.com' ( for e.g. )

When I run the application locally, and try to sign up, the verification URL in the email starts with
my local address ( 127.0.0.1 ) but not the value I set in the publicServerURL

I know that ideally, because I am running the application locally, it should point me to my localhost.
But because I am explicitly setting the publicServerURL, should not it point me to that URL?

Steps to reproduce

Set up parse server
While setting up, set

verifyUserEmails: true, 
publicServerURL: 'http://abc.com'

Now try to sign up.
Check the your email.

The verification url starts with http://127.0.0.1:4000 rather than http://abc.com

Expected Results

Verification Link should start with publicServerURL ( http://abc.com for example )

Actual Outcome

Verification Link starts with http://127.0.0.1:4000 ( the address on which my parse-server is running)

Environment Setup

  • Server

    • parse-server version : [2.7.4]
    • Operating System: [Windows 7, MacOS 10.12]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): [localhost]
  • Database

    • MongoDB version: [FILL THIS OUT]
    • Storage engine: [FILL THIS OUT]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): [Azure Cloud]

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