mail issue fix
This commit is contained in:
parent
61e477027b
commit
1ecbc0c1b6
@ -69,7 +69,8 @@ export class LoginComponent implements OnInit{
|
|||||||
*/
|
*/
|
||||||
login() {
|
login() {
|
||||||
const mailid = this.email.split(/\s/).join('');
|
const mailid = this.email.split(/\s/).join('');
|
||||||
let auth = { 'Username': mailid, 'Password': this.password };
|
const password = this.password.split(/\s/).join('');
|
||||||
|
let auth = { 'Username': mailid, 'Password': password };
|
||||||
this.loaderService.showMatSpinnerDialog('');
|
this.loaderService.showMatSpinnerDialog('');
|
||||||
this.aws.dologin(auth).subscribe(res => {
|
this.aws.dologin(auth).subscribe(res => {
|
||||||
// console.log("do login",res)
|
// console.log("do login",res)
|
||||||
@ -96,10 +97,12 @@ export class LoginComponent implements OnInit{
|
|||||||
* @param email password,newpassword
|
* @param email password,newpassword
|
||||||
*/
|
*/
|
||||||
newpassopen() {
|
newpassopen() {
|
||||||
|
const mailid = this.email.split(/\s/).join('');
|
||||||
|
const password = this.password.split(/\s/).join('');
|
||||||
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, 'Password': this.password, 'newpassword': result };
|
let auth = { 'Username': mailid, 'Password': 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(['/']);
|
||||||
@ -128,11 +131,9 @@ export class LoginComponent implements OnInit{
|
|||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}else if(data.status == 204){
|
||||||
// else
|
alert(data.msg)
|
||||||
// {
|
}
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<div fxFlex="100" align="right">
|
<div fxFlex="100" align="right">
|
||||||
<!--<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" mat-dialog-close matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button>-->
|
<!--<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" mat-dialog-close matTooltip="Close" matTooltipPosition="below"><mat-icon>close</mat-icon></button>-->
|
||||||
<button mat-raised-button mat-icon-button (click)="updatepassword(otp.value)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Update Password" matTooltipPosition="below"><mat-icon>save</mat-icon></button>
|
<button mat-raised-button (click)="updatepassword(otp.value)" class="mr-1 mb-1 hover-icon" type="button" matTooltip="Update Password" matTooltipPosition="below" style="background-color: red;color:#fff;">verify</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-actions>
|
</mat-dialog-actions>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user