function CheckPassStrength(password) {
var password_strength = document.getElementById("password_strength");
if (password.length == 0) {
password_strength.innerHTML = "";
return;
}
var regex = new Array();
regex.push("[A-Z]"); //Uppercase Alphabet.
regex.push("[a-z]"); //Lowercase Alphabet.
regex.push("[0-9]");
regex.push(//Special Character.
var passed = 0;
if (new RegExp(regex[i]).test(password)) {
passed++;
}
}
if (passed > 2 password.length > 8) {
passed++;
}
var color = "";
var strength = ""
switch (passed) {
case 0:
case 1:
strength = "Weak";
color = "red";
break;
case 2:
strength = "Good";
color = "darkorange";
break;
case 3:
case 4:
strength = "Strong";
color = "green";
break;
case 5:
strength = "Very Strong";
color = "darkgreen";
break;
}
password_strength.innerHTML = strength;
password_strength.style.color = color;
}
5. Go To Password Item Properties > Advanced > Custom Attributes Paste The Following Code-
onkeyup="CheckPassStrength(this.value)"
6. Go To Password Item Properties > Advanced > Post Text Paste The Following Code-
Our First Step, The Work Of Check Password Strength Is Almost Finished, Is The Password Strength Being Checked Properly? I Will Try It.
Steps How To Generate Auto Strength Password.
The First Step Will Show How To Check Password Strength Finished. The Second Step Will Show How To Generate Auto Strength Password. Take A Look At All The Steps For Generate Auto Strength Password.
I Will Create A Function To Use to Generate Auto Strength Password. The Complete Function Is Given Below, You Can Copy And Use The Complete Script.
1. Go To Function And Global Variable Declaration From Page Properties Paste The Following Script-
function auto_pass_generator( len ) {
var length = (len)?(len):(10);
var string = "abcdefghijklmnopqrstuvwxyz"; //to upper
var numeric = '0123456789';
var password = "";
var character = "";
var crunch = true;
while( password.length )
{
entity1 = Math.ceil(string.length * Math.random()*Math.random());
entity2 = Math.ceil(numeric.length * Math.random()*Math.random());
entity3 = Math.ceil(punctuation.length * Math.random()*Math.random());
hold = string.charAt( entity1 );
hold = (password.length%2==0)?(hold.toUpperCase()):(hold);
character += hold;
character += numeric.charAt( entity2 );
character += punctuation.charAt( entity3 );
password = character;
}
password=password.split('').sort(function(){return 0.5-Math.random()}).join('');
document.getElementById('new_password').value = 0;
new_password.innerHTML = (password.substr(0,len));
return password.substr(0,len);
}
2. Page HTML Body Attribute Paste The Following Code-
onload="auto_pass_generator();"
3. Go To Password Item Properties > Inline Help Text Paste The Following Code-
The Whole Process Can Be Used In The Oracle Apex Application To Create A New User Account In The Powered Item. It Will Be Easy To Create Strong User Passwords.
Thank You For Watching The Full Video And Post. If You Have Any Questions Or Suggestions About This Video / Post, Please Let Us Know In The Comment Box.
🔗 Demo Application-
URL- Demo Application
Username - demo, Pass- demo
I hope everyone will like it. Please watch the full video,
Comment on any of your problems, I will try my best to solve the problem, In-Shah Allah. Everyone's cooperation is desirable. Visit my blog site, new technology related videos, you will get different types of tutorials of Oracle Apex, and hopefully, you can use them in your daily work.
Please stay tuned by subscribing to the YouTube channel, and encourages new videos to be uploaded.
=================
Visit my site to get more collaborative posts about Oracle Apex and subscribe to my YouTube channel. Thanks.
Comment on any of your issues, I will try my best to solve the problem, In-Shah Allah. Everyone's cooperation is desirable.
Visit my blog site, new technology-related videos, you will get different types of tutorials of Oracle Apex, and hopefully, you can use them in your daily work.
==============================
🙍🏾 Md jABER HOSSEN
📲 Mobile- +8801760688286
📨 Email- jaberit786@gmail.com
🌐 FB- facebook.com/mdjaber.hossen1
Please Subscribe to My Channel
Many thanks for visiting the site.
Then Enjoy.........................