Open Closed

Bug - Clicking 'Log in to application' after email confirmation throws 404 page not found error #5250


User avatar
0
mkinc created
  • ABP Framework version: v7.2.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): OpenIdDict separate auth server
  • Exception message and stack trace:
  • Steps to reproduce the issue:
    • Log in as host admin
    • Create user
    • Login as the new user
    • In My account -> Personal info, click Verify next to email.
    • Logout of user
    • Click the link in the email
    • [Observe email has been confirmed which can later be verified in the front end for that user]
    • Click 'Log in to application'
  • Expected behaviour: Goes to login page
  • Actual behaviour: 404 page not found error. The link is to the base of the front end app (e.g. in dev for us it's https://admin.localhost:44388/) but this by itself isn't a valid url. It needs to be https://admin.localhost:44388/Account/Login with all the url params that you'd normally get if you navigated to the login page from the main app 'Login' button

Potential solutions:

  • [Best solution?] Make sure the route of the auth server front end application routes to the login page or something?
  • In EmailConfirmationModel make sure the ReturnUrl is set to the _appUrlProvider.GetUrlAsync("Angular") (e.g. for us that would be something like admin.localhost:4200)

Thanks.


1 Answer(s)
  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hello, I've created an issue for that also I refunded your credit. This issue will fixed at 7.2-patch 🙂

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09