Jump to content
bennyGoon

Webpage auto login

Recommended Posts

Just a tip... I don't like having to login each time to the webpage so I modified the html to auto login...

 

Go to C:\GV-600\WebTemp and open the index.html in a text editor then replace the function Default() with this one

 

function Default() {

// detect browser ( not IE browser )
if( (navigator.userAgent).search(/MSIE/) < 0 ){

	var obj = document.getElementById('ViewTypeOption');

	obj.style.visibility = 'hidden';
	obj.style.display = 'none';
}

// cookie
id = GetCookie('id');
pwd = GetCookie('pwd');
remember = GetCookie('remember');	 

if( remember == 1 ){

	if( id != null )
		document.form1.id.value= id;
	if( pwd != null)
		document.form1.pwd.value=pwd;

	document.form1.RememberID.checked = true;
} 

document.form1.Login.value = LoadGetString("IDS_WEB_LOGIN");

if (document.form1.pwd.value!="" && document.form1.id.value!="" && document.form1.RememberID.checked == true) {
	document.form1.submit();
}

}

 

Now it should auto log in on page load, if you set check remember me. If you change your password down the road, simply clear your cookies..

Share this post


Link to post
Share on other sites

It´s a good hint but is dangerous.

 

Don´t porf fordward your router to the GV system or every on the net will see your system.

 

 

Best regards. gamba47

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×