Base solution for your next web application
Open Closed

E-mail Activation Redirect To Login Page #10379


User avatar
0
QuickApp created
  • What is your product version? v10.2.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .Net Core

Hi, When you click on the activation link in the membership activation mail, you are directed to the login page without a confirmation message on the opened page.

on page src/account/email-activation/confirm-email-component.ts; this.notify.success(this.l('YourEmailIsConfirmedMessage'), '', { onClose: () => { this._router.navigate(['account/login']); } });

Even though I removed the "this._router.navigate(['account/login']);" code, the redirect was not disabled.

I want redirection after the user sees the "Email address has been confirmed" message and clicks the "Okey" button.

Thank you for your help in advance.


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

    Hi @QuickApp

    You can call redirection using a setTimeout function. It will be good if we do the same in AspNet Zero. Thank you for pointing it out.

  • User Avatar
    0
    QuickApp created

    Which page should I add the setTimeOut parameter to?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry for my late reply, you need to add it to confirm-email-component.ts

  • User Avatar
    0
    QuickApp created

    Thank you for your help @ismcagdas