Open Closed

Email validation is broken #10034


User avatar
0
pablo@ccalp.net created

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)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    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:

    1. Check the Email Link Generation:
      • ABP generates email confirmation links using the configured App:SelfUrl (for the main app) and App: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:
    "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.
    1. 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.
    2. Verify Angular Environment and API URLs:

      • In your Angular app, ensure the environment.ts or environment.prod.ts files have the correct oAuthConfig.issuer and API URLs matching your Auth Server and API endpoints.
    3. 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.
    4. Review ABP Emailing and Account Module Docs:

    5. 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:SelfUrl and App:ClientUrl settings.

    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.

  • User Avatar
    0
    pablo@ccalp.net created

    It was working before, something broke, I need help ASAP

  • User Avatar
    0
    pablo@ccalp.net created

    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

  • User Avatar
    0
    pablo@ccalp.net created

    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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Your ticket has been refunded.

    Thanks.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 25, 2025, 06:16
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.