Password Checker

Obey

You just played yourself.
Nov 23, 2013
250
29
Some people use simple passwords, that's why I released this.
I know it's simple, but yeah some people certainly need this
Screen:
p0zCXO3.png


Code:
<style type="text/css">#weak,#medium{border-right:solid 1px #DEDEDE;}#sm{margin:0px;padding:0px;height:14px;font-family:Tahoma,Arial,sans-serif;font-size:9px;}#sm ul{border:0px;margin:0px;padding:0px;list-style-type:none;text-align:center;}#sm ul li{display:block;float:left;text-align:center;padding:0px 0px 0px 0px;margin:0px;height:14px;}.nrm{width:84px;color:#adadad;text-align:center;padding:2px;background-color:#F1F1F1;display:block;vertical-align:middle;}.red{width:84px;color:#FFFFFF;text-align:center;padding:2px;background-color:#FF6F6F;display:block;vertical-align:middle;}.yellow{width:84px;color:#FFFFFF;text-align:center;padding:2px;background-color:#FDB14D;display:block;vertical-align:middle;}.green{width:84px;color:#FFFFFF;text-align:center;padding:2px;background-color:#A0DA54;display:block;vertical-align:middle;}</style>
<style>.input-ok,.input-ok-content{border:1px solid #00CC00;}.pane-smeetpanes-registration-form .badge-100-percent-free{background:url("http://webcdn.smeet.com/sites/all/themes/smeet/smeettheme/misc/images/panes/smeetpanes/registration-form/badge.gif") no-repeat scroll left top transparent;color:#000000;font-size:12px;font-weight:bold;height:66px;text-align:center;text-transform:uppercase;width:66px;}.pane-smeetpanes-registration-form .badge-100-percent-free span{display:block;line-height:13px;padding:20px 0 0;}.pane-smeetpanes-registration-form .form-footer-left{float:left;}.pane-smeetpanes-registration-form .form-footer-right{float:right;width:195px;}</style>
<script type="text/javascript">
function evalPwd(s)
{
var cmpx = 0;

if (s.length >= 6)
{
cmpx++;

if (s.search("[A-Z]") != -1)
{
cmpx++;
}

if (s.search("[0-9]") != -1)
{
cmpx++;
}

if (s.length >= 8 || s.search("[\x20-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]") != -1)
{
cmpx++;
}
}

if (cmpx == 0)
{
document.getElementById("weak").className = "nrm";
document.getElementById("medium").className = "nrm";
document.getElementById("strong").className = "nrm";
}
else if (cmpx == 1)
{
document.getElementById("weak").className = "red";
document.getElementById("medium").className = "nrm";
document.getElementById("strong").className = "nrm";
}
else if (cmpx == 2)
{
document.getElementById("weak").className = "yellow";
document.getElementById("medium").className = "yellow";
document.getElementById("strong").className = "nrm";
}
else
{
document.getElementById("weak").className = "green";
document.getElementById("medium").className = "green";
document.getElementById("strong").className = "green";
}
});
});


usernameIsValid = 0;
passwordIsValid = 0;






function errorForm() {
$('#bd_err').removeClass("display_none");
}


</script>
</head>
<body id="page-request-password">
<div id="page-wrapper">
<div id="page-shadow-wrapper">


</a>
</div>


<div id="page-visual"></div>


<div id="page-content-wrapper">
<div id="page-content" class="clear-block">







<br/><br/>
<label for="password"><strong><font color="#000A14">Password</font></strong>&nbsp;<span>(<a href="#" style="cursor: help;" title="5-12 characters">?</a>)</span></label><br/>
<input type="password" name="password" id="formpassword" onkeyup="evalPwd(this.value);"/>
<div id="sm"><ul><li id="weak" class="nrm">Weak</li><li id="medium" class="nrm">Medium</li><li id="strong" class="nrm">Strong</li></div>
<br/>

( Got this from another forum, posting for members who haven't seen it before or would like to use it. )
 
Last edited:

Jeffrey

Devbest Indian Tech Support
FindRetros Moderator
Feb 5, 2013
1,180
412
Explain how to place it in the register page for people who dont know how to.
 

Users who are viewing this thread

Top