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

Create a angular page and API which uses no authentication in the host project #9665


User avatar
0
OriAssurant created

Hi Aspnetzero support folks ,

product version :

  • product type: Angular
  • product framework type: .net core

CAn you please help me ?

I need to create a page that can be accessed without going through the application login.

  • Page should allow user to change languages
  • Page should have a Recaptcha (part of aspnetzero library)
  • Page should be able to use aspnetzero localization
  • Verify that client custom .css works on the page**

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

    Hi,

    You can create a new module for your anonymous components similar to https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/account/account-routing.module.ts and create your component under this module.

    You can take register component as the sample since it also has racaptcha in it.

    After that, you can include this module into root.module as well.

  • User Avatar
    0
    OriAssurant created

    thanks for your answer. But the module you are saying will inherit the same theme for all the components in the account folder. I need a different theme specifially for this page. -- so is it fine if i create a new folder in the src folder and since i will need the language-switch component .. Can i move it to the src root folder or somwhere in a shared folder so it can be used by my other page ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @OriAssurant

    -- so is it fine if i create a new folder in the src folder and since i will need the language-switch component .. Can i move it to the src root folder or somwhere in a shared folder so it can be used by my other page ?

    Yes, this is perfectly fine.