Automatic login html page
Posted: Wed Nov 27, 2024 8:49 pm
I'm trying to create a local html file which, upon opening, will automatically load the hesk admin site and login.
So far I have this:
<form id="form1" action="https://thewebsite.com/help/admin/index.php" method="post">
<input type=hidden name="regInputUsername" value="theusername"/>
<input type=hidden name="regInputPassword" value="thepassword"/>
<input type=hidden name="a" value="do_login"/>
</form>
<script>
window.onload = function() {
document.getElementById('form1').submit();
};
</script>
This doesn't seem to work. It loads the site, but has an error saying to enter the username and password. Any idea on what I'm missing? I'm not the best at this. Thank you in advance!
Jim
So far I have this:
<form id="form1" action="https://thewebsite.com/help/admin/index.php" method="post">
<input type=hidden name="regInputUsername" value="theusername"/>
<input type=hidden name="regInputPassword" value="thepassword"/>
<input type=hidden name="a" value="do_login"/>
</form>
<script>
window.onload = function() {
document.getElementById('form1').submit();
};
</script>
This doesn't seem to work. It loads the site, but has an error saying to enter the username and password. Any idea on what I'm missing? I'm not the best at this. Thank you in advance!
Jim