Base solution for your next web application
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)