From 62ecae36ff59b0382b228db53f4cb89ee5d07cce Mon Sep 17 00:00:00 2001 From: Dinesh Date: Fri, 20 Oct 2023 09:12:21 +0545 Subject: [PATCH] Customer register mobile number validation --- .../Views/Account/ForceChangePassword.cshtml | 33 +------------------ ...nlineV2.MvcApplicationPartsAssemblyInfo.cs | 17 ++++++++++ 2 files changed, 18 insertions(+), 32 deletions(-) create mode 100644 CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.MvcApplicationPartsAssemblyInfo.cs diff --git a/CustomerOnlineV2/CustomerOnlineV2/Views/Account/ForceChangePassword.cshtml b/CustomerOnlineV2/CustomerOnlineV2/Views/Account/ForceChangePassword.cshtml index a3dcd11..b2e65d3 100644 --- a/CustomerOnlineV2/CustomerOnlineV2/Views/Account/ForceChangePassword.cshtml +++ b/CustomerOnlineV2/CustomerOnlineV2/Views/Account/ForceChangePassword.cshtml @@ -194,38 +194,7 @@ $(document).ready(function () { debugger; - // // Select the password and confirmPassword input fields - // var passwordField = $("#NewPassword"); - // var confirmPasswordField = $("#ConfirmNewPassword"); - - // // Select the password and confirmPassword validation elements - // var passwordValidation = $("#password-validation"); - // var confirmPasswordValidation = $("#confirm-password-validation"); - - // // Password regex: Minimum 8 characters, at least one uppercase letter, one lowercase letter, and one number - // var passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[A-Za-z\d@('@')$#!%*?&]{8,}$/; - - // // Add event handlers to the password and confirmPassword fields - // passwordField.on("keyup", function () { - // var password = passwordField.val(); - - // if (passwordRegex.test(password)) { - // passwordValidation.text("Valid password").removeClass("text-danger").addClass("text-success"); - // } else { - // passwordValidation.text("Password should contain at least one special character (*&%$), one uppercase, one lowercase and min of 8 characters").css("color", "red"); - // } - // }); - - // confirmPasswordField.on("keyup", function () { - // var password = passwordField.val(); - // var confirmPassword = confirmPasswordField.val(); - - // if (password === confirmPassword) { - // confirmPasswordValidation.text("Passwords match").css("color", "green"); - // } else { - // confirmPasswordValidation.text("Passwords do not match").css("color", "red"); - // } - // }); + var passwordField = $("#NewPassword"); diff --git a/CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.MvcApplicationPartsAssemblyInfo.cs b/CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.MvcApplicationPartsAssemblyInfo.cs new file mode 100644 index 0000000..4c0b80c --- /dev/null +++ b/CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.MvcApplicationPartsAssemblyInfo.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation")] + +// Generated by the MSBuild WriteCodeFragment class. +