Base solution for your next web application
Open Closed

Standard controls #11714


User avatar
0
niengineering created

Dear Support,

I would like to know if there is a standard solution or a recommended one to:

  1. ask the user to accept our terms of use (after first login) or contract modification (when needed) before continue (our users are created by administrator and doesn't register to software)
  2. have a "What's new" area where we can publish all software modifications

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

    Hi @niengineering

    1. Unfortunately, we don't have such a mechanism out of the box.
    2. You can use notifications for this, see https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Features-Angular-Notifications
  • User Avatar
    0
    niengineering created

    Ok, notifications is not what we are searching for this topic but we understand there is nothing inside the standard so we will implement it. Thank you

  • User Avatar
    0
    niengineering created

    Is there a way to intercept (Angular+NET Core) that a user needs to accept the contract after login?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can add a new field to user Entity (ContractAccepted) and if this field is false, you can redirect user to a special page after login.

  • User Avatar
    0
    niengineering created

    Yeah clear... but what is the point in the Angular code where I can add this check? I need to understand where I can intercept every request coming from a logged user. E.g. if he log in I can add this contract window but I need to be sure that, after the login, if he try to navigate (manually through the browser) to some valid address the contract window shows up

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We are using https://github.com/aspnetboilerplate/abp-ng2-module/blob/master/projects/abp-ng2-module/src/lib/interceptors/abpHttpInterceptor.ts to intercept all HTTP request on Angular app. I think you can replace this with your own implementation and handle this case.