Login From An External Page

Post Reply
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Login From An External Page

Post by Masher »

You can append ?user=<usersname>&password=<userspassword> to the url to the webcontrol panel. For example:

Code: Select all

http://panel.somesite.com/Default.aspx?user=demo&password=demopassword
Here is an HTML and Javascript code you can use on your pages to accomplish this via a form. Simply replace the url in the next to last line with the url to where UGCC is located.

Code: Select all

<script type="text/javascript"> function LaunchPopup(page) {
OpenWin = this.open(page + document.getElementById("un").value + "&password=" + document.getElementById("pw").value);
}
</script>

<form method="post" name="ugcclogin">Username<br>
  <input name="un"><br>
Password<br>
  <input name="pw"><br>
  <br>
  <button type="button" onclick='LaunchPopup("http://www.somesite.com/ugcc-sharp/default.aspx?user=")'>Login</button>
</form>
You can also use an iframe to embedded the panel into a site with a different URL using iframes.
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
Post Reply