first commit
This commit is contained in:
63
src/app/modules/auth/auth.module.ts
Normal file
63
src/app/modules/auth/auth.module.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { MessageService } from 'primeng/api';
|
||||
import { PasswordModule } from 'primeng/password';
|
||||
import { ToastModule } from 'primeng/toast';
|
||||
import { ValidationService } from 'src/app/core/common/validation.service';
|
||||
import { LoginComponent } from './login/login.component';
|
||||
import { InterceptLoader } from 'src/app/core/common/intercept-loader.service';
|
||||
import { ForgetPasswordComponent } from './forget-password/forget-password.component';
|
||||
import { VerifyEmailComponent } from './verify-email/verify-email.component';
|
||||
import { NgOtpInputModule } from 'ng-otp-input';
|
||||
import { SingleSignOnComponent } from './single-sign-on/single-sign-on.component';
|
||||
import { SSOService } from 'src/app/core/services/sso.service';
|
||||
import { ButtonModule } from 'primeng/button';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: 'Login',
|
||||
component: LoginComponent
|
||||
},
|
||||
{
|
||||
path: 'Forget-Password',
|
||||
component: ForgetPasswordComponent
|
||||
},
|
||||
{
|
||||
path: 'verify-email',
|
||||
component: VerifyEmailComponent
|
||||
},
|
||||
{
|
||||
path: 'SSOLogin',
|
||||
component: SingleSignOnComponent
|
||||
},
|
||||
{ path: '', redirectTo: 'Login', pathMatch: 'full' },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
LoginComponent,
|
||||
ForgetPasswordComponent,
|
||||
VerifyEmailComponent,
|
||||
SingleSignOnComponent,
|
||||
],
|
||||
imports: [
|
||||
ButtonModule,
|
||||
ToastModule,
|
||||
CommonModule,
|
||||
PasswordModule,
|
||||
NgOtpInputModule,
|
||||
HttpClientModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MatCheckboxModule,
|
||||
RouterModule.forChild(routes),
|
||||
],
|
||||
providers: [MessageService, ValidationService,
|
||||
SSOService,
|
||||
{ provide: HTTP_INTERCEPTORS, useClass: InterceptLoader, multi: true }]
|
||||
})
|
||||
export class AuthModule { }
|
||||
Reference in New Issue
Block a user