opt and mail issue fix
This commit is contained in:
parent
55a887c415
commit
0e0bb457ab
@ -212,12 +212,13 @@ forgotopen() {
|
|||||||
// // })
|
// // })
|
||||||
// }
|
// }
|
||||||
forgotpassword(){
|
forgotpassword(){
|
||||||
this.aws.generateotp(this.email).subscribe(res => {
|
const mailid = this.email.split(/\s/).join('');
|
||||||
|
this.aws.generateotp(mailid).subscribe(res => {
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
const modalOption:ModalOptions={
|
const modalOption:ModalOptions={
|
||||||
cssClass:'filterModal'
|
cssClass:'optModal'
|
||||||
}
|
}
|
||||||
const modalCtrl=this.modalCtrl.create(OtpPage,{'drop_down_datas':this.email})
|
const modalCtrl=this.modalCtrl.create(OtpPage,{'drop_down_datas':this.email},modalOption)
|
||||||
modalCtrl.present();
|
modalCtrl.present();
|
||||||
modalCtrl.onDidDismiss((data)=>{
|
modalCtrl.onDidDismiss((data)=>{
|
||||||
console.log(data)
|
console.log(data)
|
||||||
|
|||||||
@ -33,6 +33,6 @@
|
|||||||
<!-- <button style="background-color: #e2412f;" mat-raised-button mat-icon-button (click)="updatepassword(otp.value)" class="mr-1 mt-1 hover-icon">
|
<!-- <button style="background-color: #e2412f;" mat-raised-button mat-icon-button (click)="updatepassword(otp.value)" class="mr-1 mt-1 hover-icon">
|
||||||
<ion-icon name="save"></ion-icon>
|
<ion-icon name="save"></ion-icon>
|
||||||
</button> -->
|
</button> -->
|
||||||
<button class="btn-no-pad" medium ion-button round color="optblue" (click)="updatepassword(otp.value)"><ion-icon style="color:gray;font-size: 24px;" name="md-arrow-dropright-circle"></ion-icon> </button>
|
<button class="btn-no-pad" medium ion-button round color="optblue" (click)="updatepassword(otp.value)" style="color: #fff;">Verify</button>
|
||||||
</div>
|
</div>
|
||||||
</ion-footer>
|
</ion-footer>
|
||||||
|
|||||||
@ -1,25 +1,13 @@
|
|||||||
page-otp {
|
page-otp {
|
||||||
mat-form-field {
|
.toolbar-background-md {
|
||||||
margin: 0 2%;
|
border-color: #b2b2b2;
|
||||||
|
background: red !important;
|
||||||
|
|
||||||
}
|
}
|
||||||
.paragraph_change {
|
.toolbar-title-md{
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
background-color: #e00201 !important;
|
|
||||||
// padding: 10px !important;
|
|
||||||
}
|
|
||||||
.cdk-global-overlay-wrapper{
|
|
||||||
justify-content: center !important;
|
|
||||||
}
|
|
||||||
mat-dialog-actions{
|
|
||||||
border-top: 2px solid #e00201;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-form-field-appearance-legacy .mat-hint{
|
|
||||||
color:rgba(0, 0, 0, 0.8) !important;
|
|
||||||
}
|
|
||||||
.my-modal {
|
|
||||||
height: 50%!important;
|
|
||||||
width: 50%!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,8 @@ export class OtpPage {
|
|||||||
{
|
{
|
||||||
console.log('data');
|
console.log('data');
|
||||||
console.log(this.drop_down_datas,otp);
|
console.log(this.drop_down_datas,otp);
|
||||||
this.aws.resetpassword(this.drop_down_datas,otp).subscribe(data => {
|
const mail = this.drop_down_datas.split(/\s/).join('');
|
||||||
|
this.aws.resetpassword(mail,otp).subscribe(data => {
|
||||||
console.log('data');
|
console.log('data');
|
||||||
console.log(data)
|
console.log(data)
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
|
|||||||
@ -38,8 +38,10 @@ export class PasswordPage {
|
|||||||
}
|
}
|
||||||
setNewPassword(newpass)
|
setNewPassword(newpass)
|
||||||
{
|
{
|
||||||
|
const mailid = this.Username.split(/\s/).join('');
|
||||||
|
const Password = this.Password.split(/\s/).join('');
|
||||||
if(newpass !='' && newpass !=null && newpass !== undefined){
|
if(newpass !='' && newpass !=null && newpass !== undefined){
|
||||||
let auth = { 'Username': this.Username, 'Password': this.Password, 'newpassword': newpass };
|
let auth = { 'Username': mailid, 'Password': Password, 'newpassword': newpass };
|
||||||
console.log(auth);
|
console.log(auth);
|
||||||
this.aws.dologin(auth).subscribe(res => {
|
this.aws.dologin(auth).subscribe(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|||||||
@ -66,3 +66,72 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.optModal{
|
||||||
|
padding: 6.4%;
|
||||||
|
// padding: 30px;
|
||||||
|
background-color: rgba(0, 0, 0, 0.56);
|
||||||
|
// padding: 30px;
|
||||||
|
color:red;
|
||||||
|
// filter:blur(5px);
|
||||||
|
//color:lightcyan;
|
||||||
|
// background-color:gray;
|
||||||
|
.modal-wrapper {
|
||||||
|
// border-radius: 7px;
|
||||||
|
// background: rgba(0, 0, 0, 0.5);
|
||||||
|
// color: gray;
|
||||||
|
|
||||||
|
height: 35% !important;
|
||||||
|
width: 100% !important;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin-top: 50%;
|
||||||
|
|
||||||
|
mat-card{
|
||||||
|
// background-color:rgb(252, 252, 161);
|
||||||
|
background-color:white;
|
||||||
|
box-shadow: 2px 2px lavender;
|
||||||
|
border-radius: 5px;
|
||||||
|
min-height: 13em;
|
||||||
|
// height: 16.5em;
|
||||||
|
max-height: 16.5em;
|
||||||
|
border:1px solid lavender;
|
||||||
|
}
|
||||||
|
.mat-card-title{
|
||||||
|
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16px;
|
||||||
|
color:#e2412f;
|
||||||
|
}
|
||||||
|
mat-card-content{
|
||||||
|
// margin-left: 4%;
|
||||||
|
}
|
||||||
|
ion-item{
|
||||||
|
// background-color:rgb(252, 252, 161);
|
||||||
|
background-color: lightcyan;
|
||||||
|
}
|
||||||
|
// margin-right: 15%;
|
||||||
|
|
||||||
|
button{
|
||||||
|
font-size: 12px;
|
||||||
|
// height: 40px;
|
||||||
|
color: #fff;
|
||||||
|
// margin-bottom: 10px;
|
||||||
|
position: relative;
|
||||||
|
bottom:0.5em;
|
||||||
|
}
|
||||||
|
// input{
|
||||||
|
// // border:1px solid blueviolet;
|
||||||
|
// }
|
||||||
|
// mat-form-field{
|
||||||
|
// width: 100%;
|
||||||
|
// margin-top: 3%;
|
||||||
|
// }
|
||||||
|
// mat-radio-button{
|
||||||
|
// margin-top: 2%;
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user