According to this link and this issue The following changes can be made to customize/ extend the existing the auth-pages/components in ngx-admin (without the npm dependency)
First Copy all source files from this repository folder to
'theme/components/auth'
of your project
core.module.ts
change following imports: import { NbAuthModule, NbDummyAuthStrategy } from '@nebular/auth';
to
import { NbAuthModule, NbDummyAuthStrategy } from '../@theme/components/auth'; // '@nebular/auth';
app-routing.module.ts
change following importsimport {
NbAuthComponent,
NbLoginComponent,
NbLogoutComponent,
NbRegisterComponent,
NbRequestPasswordComponent,
NbResetPasswordComponent,
} from '@nebular/auth';
to
import {
NbAuthComponent,
NbLoginComponent,
NbLogoutComponent,
NbRegisterComponent,
NbRequestPasswordComponent,
NbResetPasswordComponent,
} from './@theme/components/auth'; //'@nebular/auth'
4.in file theme.module.ts
add following imports
// this line in import part of the file
import {NbAuthModule} from './components/auth';
import {NbPasswordAuthStrategy} from "./components/auth/strategies";
// inside of const NB_THEME_PROVIDERS
NbAuthModule.forRoot({
providers: {
email: {
service: NbPasswordAuthStrategy,
config: {},
}
}
}).providers,
References