otp changes
This commit is contained in:
parent
e3e15f5584
commit
4bf04b7137
@ -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]
|
||||
})
|
||||
|
||||
@ -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: `
|
||||
<h5 class="mt-0">Forgot Password</h5>
|
||||
|
||||
<mat-form-field>
|
||||
<input matInput placeholder="Enter OTP" #otp style="width: 100%;">
|
||||
|
||||
</mat-form-field>
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<button mat-raised-button class="mat-green" type="submit" (click)="dialogRef.close(newpassword.value)">Submit</button>
|
||||
|
||||
|
||||
`
|
||||
})
|
||||
export class OTP {
|
||||
|
||||
newpassword: any = newpassword;
|
||||
confirmPassword: any = confirmPassword;
|
||||
jazzMessage = 'Jazzy jazz jazz';
|
||||
|
||||
constructor(public dialogRef: MatDialogRef<ForgotPass>) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -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 {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user