I haven't tested email validation in a while. I know it was working before, but I have recently upgraded to version 9.2.3, and now it is broken. I need to provide customers with MFA capabilities.
The problem is with the generated link that I'm getting. Here's a sample:
http://url9362.ccalp.net/ls/click?upn=u001.ej2MCuW4coAd0RZqMHmepRcIp0H5EpMC3kTGoWfIY50jIKr-2BnR3ycBOrT4bl7XC-2B6FHw8VMlk-2BluulUjg7FvALaAjMo7B5mtGpzQXiWa7Iwg6NDx4HiFo-2BjxIU1107seBfohV35n9rSzqmWXwF8YqLFra-2FHMFZoesrzu9a9wnsXtH2z7RNHMypcf0Qzhsd3pjhJ-2FpNSHkLvqhWIaNi0XyRb7uoOpWyUKG0-2BfherZ4ykNtFPLvpHgz-2B8pARcyljAD-2FKk9cCdKSun0EV0jeFJcBxl85zNNGKEqF3GYra9fRQ8eI-2Fwe05r5r1yrd4Ftlvh2EvsSJrQMz4ZSpryWGPVwJtcgkvj3G3GE4flZbE0p7WoB9cbdl9WfJQmRp2VCHquvSAI2p57vNhyO-2FZgnuDXWX4LXz-2BvGqLY5b56EU6QMBcuqlRRExm0R4PR7NzY9olBCpSilVknqEjYw73Tk8W85wmT3pcwgTDTL66ezv-2B40E4Z1PrYz-2Fc6Ez8pUhneDP7AMj-2B7oS0gPCn-2BJYzQsxyfQCiYVQ6VBCtq6iO73yisVNi7bEmsocuQ9iIho4RdxHlGRZLXYiOCEbvrewEvdS-2F4LujNBP1B7Dqak2vM62HaLORuJKOR9W1LIXfw2Afit-2F2NnvWLHB6F6VywxG-2F1ai7sBDX6EdBY6iC2b8PsKwx0RCSA-3DyyWU_A3nRQoop3xGTTNLdbAlLJU8fXnFJ46GAy9Q1saMFDcO2dZCzBKsGfyrynOYfyaQ0c6mKpkRt0xdBKk8NPff7YiZaMKHO-2FuEimZhxGrXfRk93cXQ0HI4UOt5KjWlu9LfxgU1a10wRQzO975UWwGPrTYhJ7heMOwUK9rmOCJu735WU6NbW5QImQJgGX5ZnZKR2g1JWcgCS4eYVEoQ8aw1ARg-3D-3D
5 Answer(s)
-
0
To resolve issues with email validation and broken confirmation links after upgrading to ABP Framework v9.2.3, please review the following steps and considerations:
- Check the Email Link Generation:
- ABP generates email confirmation links using the configured
App:SelfUrl(for the main app) andApp:ClientUrl(for Angular UI) settings. If these are not set correctly, the generated links may be invalid or point to the wrong domain. - Ensure that your
appsettings.json(or environment-specific config) for the Auth Server and API includes:
- ABP generates email confirmation links using the configured
"App": { "SelfUrl": "https://your-auth-server-url", "ClientUrl": "https://your-angular-app-url" }- For tiered or separated deployments, both URLs must be set and reachable from the user's browser.
Check for Link Rewriting or Email Provider Modifications:
- The sample link you provided (
http://url9362.ccalp.net/ls/click?...) appears to be rewritten by an email delivery service (such as SendGrid, Mailjet, or similar). These services often rewrite links for click tracking. - If the original ABP-generated link is correct, but the received email contains a rewritten/broken link, check your email provider's settings to disable or adjust link tracking.
- The sample link you provided (
Verify Angular Environment and API URLs:
- In your Angular app, ensure the
environment.tsorenvironment.prod.tsfiles have the correctoAuthConfig.issuerand API URLs matching your Auth Server and API endpoints.
- In your Angular app, ensure the
Test the Raw Link:
- Temporarily log or display the raw confirmation link before sending the email to verify that ABP is generating the correct URL.
Review ABP Emailing and Account Module Docs:
- Review the official documentation for any changes in v9.x regarding email confirmation and MFA:
MFA and Email Confirmation:
- MFA (Multi-Factor Authentication) is supported, but email confirmation is a separate process. Ensure that your MFA flow does not depend on a broken email confirmation step.
If the ABP-generated link is correct before being sent, the issue is likely with your email provider's link rewriting. If the link is incorrect before sending, review your
App:SelfUrlandApp:ClientUrlsettings.Sources:
- https://docs.abp.io/en/abp/latest/Emailing
- https://docs.abp.io/en/abp/latest/Modules/Account
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
- Check the Email Link Generation:
-
0
It was working before, something broke, I need help ASAP
-
0
I found this ticket, maybe it is related and fixed the issue back then.
https://abp.io/support/questions/6337/Issues-with-verify-email-login-redirect-link
-
0
Never mind, SendGrid was rewriting my URLs, please disregard this ticket, if you can, I would like to get a creit for it if possible.
-
0
hi
Your ticket has been refunded.
Thanks.