Open Closed

Replacement of Login Page in angular is not working . i have follow the replacement documentation ,after replacement still the page is redirect to Backend login page #2582


User avatar
0
basavraj.chorgasti created
  • **ABP Framework version:**5.1.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

****code **** import { Component } from '@angular/core'; import {eSaasComponents} from '@volo/abp.ng.saas/volo-abp.ng.saas' import {eIdentityServerComponents} from '@volo/abp.ng.identity-server/volo-abp.ng.identity-server' import { eThemeLeptonComponents } from '@volo/abp.ng.theme.lepton'; import { NavItemsService } from '@abp/ng.theme.shared'; import { ReplaceableComponentsService,ReplaceableComponents } from '@abp/ng.core'; import { eSettingManagementComponents, } from '@abp/ng.setting-management/abp-ng.setting-management'; import { eAccountComponents } from '@volo/abp.ng.account/public'; import { LoginComponent } from './account/login/login.component'; @Component({ selector: 'app-root', template: <abp-loader-bar></abp-loader-bar> <abp-dynamic-layout></abp-dynamic-layout>, }) export class AppComponent { constructor(private replaceableComponentsService: ReplaceableComponentsService) {} ngOnInit() { this.replaceableComponentsService.add({ key: eAccountComponents.Login, component: LoginComponent, }); } }


1 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    It seems you want to use Resource Owner Flow. Remove responseType from your environment settings.

    https://docs.abp.io/en/abp/latest/UI/Angular/Authorization#resource-owner-password-flow

Made with ❤️ on ABP v9.0.0-preview. Updated on October 07, 2024, 08:52