Monday 12 February 2018

Test Your Password Line Using Jquery

To present the password forcefulness to the client is i of the of import concept, because the user volition know  how rigid our password in addition to it helps to reset the password when the password is poor. The password is i of the real of import plain to access their profile in addition to then the password should last rigid in addition to then nosotros involve to gear upwardly the rigid password. In the below event accept the 2 dissimilar forcefulness validation. 

In the showtime event the forcefulness meter is inwards below text box it shows how the password strength. It changes the blood-red coloring when password is piteous in addition to also display the text similar your password is likewise weak.when password is 4 to 8 grapheme it shows the message "Could last stronger" in addition to coloring is yellow. And the password is to a higher house 8 grapheme it shows "password is strong" message in addition to coloring changes equally green.

In the minute event same text volition display similar the to a higher house event but at that topographic point is no forcefulness meter inwards this instead of this meter it changes the edge coloring of the password text plain dynamically based on the password strength 

Here i did the validation using grapheme you lot tin sack gear upwardly the password validation using combination of the characters in addition to the numbers in addition to exceptional characters past times changing the script validation. Check the below event demo page to meet the similar demo of the below example. I promise this concept is real useful. 


Code for attempt out Password strength:

<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Password forcefulness Indicator using Jquery</title>
<link href="https://fonts.googleapis.com/css?family=PT+Sans+Narrow" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>Password forcefulness Validation Option1:</h1>
<div class="form-container">
<form class="form-1" action="">
<label>Enter password</label>
<input class="input-1" type="password" placeholder="&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;">
<div class="progress-bar_wrap">
<div class="progress-bar_item progress-bar_item-1"></div>
<div class="progress-bar_item progress-bar_item-2"></div>
<div class="progress-bar_item progress-bar_item-3"></div>
</div>
<span class="progress-bar_text">Password is blank</span>
</form>
</div>
<h1>Password forcefulness Validation Option2:</h1>
<div class="form-container">
<form class="form-4" action="">
<label>Enter password</label>
<input class="input-4" type="password" placeholder="&#8226;&#8226;&#8226;&#8226;&#8226;&#8226;">
<span class="progress-bar_text">Password is blank</span>
</form>
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<script  src="js/index.js"></script>
</body>
</html>

SHARE THIS

Author:

Just a regular website is not the website of incredible, but not also means the site is not responsible for all of what is in it, in this case the Admin, who manages this site fully responsible to what-what is published in it.

0 comments: