diff --git a/src/app/auth/reset-password/reset-password.page.ts b/src/app/auth/reset-password/reset-password.page.ts index bc4080eab9bc79169580ee59dfb5be64a9c0a89b..8ed480db6c6ab173be5b440bc734013dc838117b 100644 --- a/src/app/auth/reset-password/reset-password.page.ts +++ b/src/app/auth/reset-password/reset-password.page.ts @@ -33,8 +33,11 @@ export class ResetPasswordPage implements OnInit { resetPassword(){ if(this.oldPassword=="" || this.confirmPassword=="" || this.newPassword=="") this.toastService.showToast("All Feilds are mandatory"); + else if(this.newPassword.length < 4) + this.toastService.showToast("Weak Password"); else if(this.confirmPassword!=this.newPassword) this.toastService.showToast("Please Confirm Password Again"); + else{ this.storage.get('token').then((token) => { let url = 'http://193.196.52.237:8081/password-reset/'