Base solution for your next web application
Open Closed

Login redirect after email activation is not working #3272


User avatar
0
leonardocooper created

Hi,

We are using ASP.NET Core + Angular v4.

After a new tenant is created, he/she receives an email to confirm the email address, the URL to activate looks like this: <a class="postlink" href="https://newtenant.company.com/">https://newtenant.company.com/</a><span style="color:#0080FF">account/confirm-email</span>?userId=60002&confirmationCode=96e62c693f7147ba9c84968fcdc6f248&tenantId=9002

After clicking this link, the email is confirmed and then the user is redirected to the login page: <a class="postlink" href="https://newtenant.company.com">https://newtenant.company.com</a><span style="color:#0080FF">/account/login</span>

<span style="color:#BF0000">After the user input the correct credentials, he/she is again redirected to the email confirmation page:</span> <a class="postlink" href="https://newtenant.company.com/">https://newtenant.company.com/</a><span style="color:#0080FF">account/confirm-email</span>?userId=60002&confirmationCode=96e62c693f7147ba9c84968fcdc6f248&tenantId=9002

Which this time gives an error saying the email is already confirmed. I believe it should redirect the user to the application instead right?

Same thing happens when a user is registering into a tenant and clicks to activate his/her email.

Thank you.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thank you for reporting this. I have created an issue here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/208">https://github.com/aspnetzero/aspnet-ze ... issues/208</a>.

    Thanks again.