Commit a1680e3c authored by Priyanka Upadhye's avatar Priyanka Upadhye
Browse files

Validation of Password change

parent ccd07189
......@@ -33,8 +33,11 @@ export class ResetPasswordPage implements OnInit {
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{'token').then((token) => {
let url = ''
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment