64 lines
2.0 KiB
TypeScript
64 lines
2.0 KiB
TypeScript
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 { }
|