Base solution for your next web application
Open Closed

Two Login Pages #8647


User avatar
0
ESTeam created

Hi,

it's possible having two login pages, one that has the default information (tenant, user, password, etc) and other that has only the user, password and a custom field (a combobox with additional user info)? Ideally, without making major changes to the ASP.NET Zero Framework. The goal is reutilize the same components after the login, but when the user does the logout he must be redirected to the correct login page. Maybe having two different url's for login, i just need some help on how to implement this. I'm using ASP.NET Core 3.1 for the back-end and Angular 8.2 for the front-end.

best regards, Dirceu


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

    one that has the default information (tenant, user, password, etc) and other that has only the user, password and a custom field (a combobox with additional user info)?

    Is your application multi-tenant? If yes, you need to change the tenant on the second login page.

    You can redirect to a different login page after logging out the user, but you need to know that the user can manually enter the url.

  • User Avatar
    0
    ESTeam created

    Yes, the application is multi-tenant (in a first phase we are going to use the default tenant). Could you give some pointers on the best way to implement the two login pages? - should i duplicate the entire login folder (src > account > login) so i can have a second login component? The best way to redirect the user to a different login page (after logout) is to change the method logout from the component AppAuthService?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    If you are going to use same server-side endpoint, you can just duplicate login.component.

    • The best way to redirect the user to a different login page (after logout) is to change the method logout from the component AppAuthService?

    Yes.

  • User Avatar
    0
    ESTeam created

    Thanks.