diff --git a/ng6-seed/src/app/app.module.ts b/ng6-seed/src/app/app.module.ts index b3c2b757c..ba8f4977d 100755 --- a/ng6-seed/src/app/app.module.ts +++ b/ng6-seed/src/app/app.module.ts @@ -64,7 +64,7 @@ import { VideoChatComponent } from './video-chat/video-chat.component' import { PushNotifyService } from './shared/push-notify.service'; import { MatVideoModule } from 'mat-video'; import { ReqTokenInterceptor } from './_guard/req-token.interceptor'; -import { OtpComponent } from './session/otp/otp.component'; +//import { OtpComponent } from './session/otp/otp.component'; export function HttpLoaderFactory(http: HttpClient) { @@ -87,7 +87,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { AdminLayoutComponent, AuthLayoutComponent, NewPasswordDialog,ForgotPass,ChangePasswordDialog, RoleMenuItemsPipe, HttpLoaderComponent, - IncomingCallComponent, VideoChatComponent,OtpComponent + IncomingCallComponent, VideoChatComponent ], imports: [ MatDialogModule, @@ -151,7 +151,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { }, MessagingService, AsyncPipe,LoaderService ], - entryComponents: [NewPasswordDialog,ForgotPass,ChangePasswordDialog,OtpComponent] + entryComponents: [NewPasswordDialog,ForgotPass,ChangePasswordDialog] // IncomingCallComponent,VideoChatComponent,], ,bootstrap: [AppComponent] }) diff --git a/ng6-seed/src/app/session/login/login.component.ts b/ng6-seed/src/app/session/login/login.component.ts index 94cae5c53..452da0c92 100755 --- a/ng6-seed/src/app/session/login/login.component.ts +++ b/ng6-seed/src/app/session/login/login.component.ts @@ -137,27 +137,7 @@ export class LoginComponent implements OnInit{ } }); - // let dialogRef = this.dialog.open(OtpComponent, this.config); - // dialogRef.afterClosed().subscribe(result => { - // if (result !== undefined) { - // let auth = { 'Username': this.email, 'Password': this.password, 'newpassword': result }; - // this.aws.dologin(auth).subscribe(res => { - // localStorage.setItem('user_role',res.idToken.payload["custom:role_id"]); - // this.getCommonSettings(); - // this.initializeNotification() - // this.router.navigate(['/home']); - // }, err => { - // alert(err.message); - // }) - // } - // }); - - - // let auth = { 'Username': this.email }; - // this.aws.userforgotpass(auth).subscribe(res => { - - // }) } loggedInCheck(){ //alert(this.shared.isLoggedIn); @@ -260,36 +240,7 @@ export class ForgotPass { } -@Component({ - selector: 'app-jazz-dialog', - template: ` -
Forgot Password
- - - - - - - - -
- - - - - ` -}) -export class OTP { - - newpassword: any = newpassword; - confirmPassword: any = confirmPassword; - jazzMessage = 'Jazzy jazz jazz'; - - constructor(public dialogRef: MatDialogRef) { - - } - -} + diff --git a/ng6-seed/src/app/session/session.module.ts b/ng6-seed/src/app/session/session.module.ts index 121d8d099..7d6012178 100755 --- a/ng6-seed/src/app/session/session.module.ts +++ b/ng6-seed/src/app/session/session.module.ts @@ -6,7 +6,7 @@ import { MatInputModule, MatRadioModule, MatButtonModule, - MatProgressBarModule, + MatProgressBarModule,MatDialogModule, MatToolbarModule } from '@angular/material'; import { FormsModule } from '@angular/forms'; import { MatIconModule} from '@angular/material'; @@ -17,7 +17,7 @@ import { ForgotPasswordComponent } from './forgot-password/forgot-password.compo import { LockScreenComponent } from './lockscreen/lockscreen.component'; import { SessionRoutes } from './session.routing'; -//import { OtpComponent } from './otp/otp.component'; +import { OtpComponent } from './otp/otp.component'; @NgModule({ imports: [ @@ -32,16 +32,16 @@ import { SessionRoutes } from './session.routing'; MatButtonModule, MatProgressBarModule, MatToolbarModule, - FlexLayoutModule + FlexLayoutModule,MatDialogModule ], declarations: [ LoginComponent, RegisterComponent, ForgotPasswordComponent, LockScreenComponent, - //OtpComponent, + OtpComponent ], - // entryComponents:[OtpComponent] + entryComponents:[OtpComponent] }) export class SessionModule {}