<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com
/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com
/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
#showhide_eye{
font-size: 29px !important;
position: relative;
top: 3px;
left: -35px;
cursor: pointer;
}
#showP{
color: green;
height: 26px;
border: solid 2px;
padding-right: 30px;
width: 200px;
}
</style>
<script>
$(document).ready(function(){
$("#showhide_eye").click(function(){
if("password" == $("#showP").attr('type'))
{
$("#showP").attr("type", "text");
$("#showhide_eye").attr('class','fa fa-eye-slash');
}
else{
$("#showP").attr("type", "password");
$("#showhide_eye").attr('class','fa fa-eye');
}
});
});
</script>
</head>
<body>
<form>
<input type="password" id="showP" autocomplete="off">
<i class="fa fa-eye" id="showhide_eye" style="font-size:36px"></i>
<input type="reset" value="Clear">
</form>
</body>
</html>
Automatically Log in as Admin without ID password
Automatically Log in as Administrator with a Single Click Automatically Log in as Administrator with a Single Click If you're a WordPress developer or site administrator, you might often need to log in to your site quickly for testing or debugging. Manually entering your username and password can be time-consuming, especially during development. To simplify this process, I’m sharing a handy code snippet that allows you to log in as the first administrator user with just a single click. How Does This Code Work? This code snippet is designed to automatically log you in as the first administrator user on your WordPress site when you add ?dev=1 to your site’s URL. Here’s how it works: Check for the Query Parameter : The code listens for the ?dev=1 parameter in the URL. If it detects this parameter, it triggers the login process. Find the First Administrator : It queries the WordPress database to find the first ...
0 Comments