Forgotpassword flow changes : ps
This commit is contained in:
parent
597e07b0f6
commit
528b1dbb80
@ -135,20 +135,20 @@ export class LoginComponent implements OnInit{
|
|||||||
* Defalut aws function
|
* Defalut aws function
|
||||||
* @param email password,newpassword
|
* @param email password,newpassword
|
||||||
*/
|
*/
|
||||||
newpassopen() {
|
// newpassopen() {
|
||||||
let dialogRef = this.dialog.open(NewPasswordDialog, this.config);
|
// let dialogRef = this.dialog.open(NewPasswordDialog, this.config);
|
||||||
dialogRef.afterClosed().subscribe(result => {
|
// dialogRef.afterClosed().subscribe(result => {
|
||||||
if (result !== undefined) {
|
// if (result !== undefined) {
|
||||||
let auth = { 'Username': this.email.split(/\s/).join(''), 'Password': this.password, 'newpassword': result };
|
// let auth = { 'Username': this.email.split(/\s/).join(''), 'Password': this.password, 'newpassword': result };
|
||||||
this.aws.dologin(auth).subscribe(res => {
|
// this.aws.dologin(auth).subscribe(res => {
|
||||||
this.getCommonSettings();
|
// this.getCommonSettings();
|
||||||
this.router.navigate(['/']);
|
// this.router.navigate(['/']);
|
||||||
}, err => {
|
// }, err => {
|
||||||
// alert(err.message);
|
// // alert(err.message);
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
forgotopen() {
|
forgotopen() {
|
||||||
this.status = true;
|
this.status = true;
|
||||||
|
|||||||
@ -21,7 +21,8 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { UserRoutes} from './users.routing';
|
import { UserRoutes} from './users.routing';
|
||||||
import { UserProfileComponent, ChangePasswordDialog } from './user-profile/user-profile.component';
|
import { UserProfileComponent, ChangePasswordDialog } from './user-profile/user-profile.component';
|
||||||
import { UserService } from './../service/user.service';
|
import { UserService } from './../service/user.service';
|
||||||
import { NewPasswordDialog, ForgotPass } from '../../session/login/login.component';
|
// import { NewPasswordDialog, ForgotPass } from '../../session/login/login.component';
|
||||||
|
import { NewPasswordDialog, ForgotPass } from '../../session/otp/otp.component';
|
||||||
// import { HttpClientModule } from '@angular/common/http';
|
// import { HttpClientModule } from '@angular/common/http';
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user