Browse Source

Customer register mobile number validation

feature/19315_Customer-Registration-new
Dinesh 11 months ago
parent
commit
62ecae36ff
  1. 33
      CustomerOnlineV2/CustomerOnlineV2/Views/Account/ForceChangePassword.cshtml
  2. 17
      CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.MvcApplicationPartsAssemblyInfo.cs

33
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");

17
CustomerOnlineV2/CustomerOnlineV2/obj/Debug/net7.0/CustomerOnlineV2.MvcApplicationPartsAssemblyInfo.cs

@ -0,0 +1,17 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation")]
// Generated by the MSBuild WriteCodeFragment class.
Loading…
Cancel
Save