Project

General

Profile

verifyEmailAddress when using WidgetSet

Added by Alex Schulmann 5 months ago

I'm using Wt's built-in authentication (Wt::Auth) and calling verifyEmailAddress() from my application, which is embedded as a WidgetSet.

The issue is that the automatically generated verification email includes a link like:

https://www.example.com/myapp.js/auth/mail/

I would like to ensure the email link points to the Wt::EntryPointType::Application instead, like this:

https://www.example.com/myapp/auth/mail/

Is there a recommended way to override or configure the base URL used in the verification email so it targets the Application entry point?

Thanks in advance!


Replies (1)

RE: verifyEmailAddress when using WidgetSet - Added by Matthias Van Ceulebroeck about 2 months ago

Hello Alex,

terribly sorry for the delay.

In AuthService there is a function called createRedirectUrl. You can override this, and correct the WidgetSet discrepancy.
It seems this function is not properly documented though.

    (1-1/1)