Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

E-mail activation link #7577


User avatar
0
statuscast created

If someone clicks their user activation link from the email twice, should they be presented with a friendly error screen? Right now the user is being shown an exception page:

http://localhost:62114/Account/EmailConfirmation?c=jzJ%2bHrkZMNCXzV9A49kgLao

An unhandled exception occurred while processing the request. UserFriendlyException: Invalid email confirmation code StatusCast.Authorization.Accounts.AccountAppService.ActivateEmail(ActivateEmailInput input) in AccountAppService.cs, line 166

Stack Query Cookies Headers UserFriendlyException: Invalid email confirmation code StatusCast.Authorization.Accounts.AccountAppService.ActivateEmail(ActivateEmailInput input) in AccountAppService.cs + user.IsEmailConfirmed = true; Abp.Threading.InternalAsyncHelper.AwaitTaskWithPostActionAndFinally(Task actualReturnValue, Func<Task> postAction, Action<Exception> finalAction) in InternalAsyncHelper.cs Abp.Threading.InternalAsyncHelper.AwaitTaskWithFinally(Task actualReturnValue, Action<Exception> finalAction) in InternalAsyncHelper.cs StatusCast.Web.Controllers.AccountController.EmailConfirmation(EmailConfirmationViewModel input) in AccountController.cs + await _accountAppService.ActivateEmail(input);


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

    hi statuscast

    We have improved it.

    see https://github.com/aspnetzero/aspnet-zero-core/issues/2528