With Egnyte, you can choose to have your users log in directly from your company website instead of having to sign in from the Egnyte login page. Setting this up can save your users an extra step and allows you to customize your login page even more. Normally, users would go to http://mycompany.egnyte.com to log into your company's Egnyte account. If you would like to skip this login page, read on to find out how.
Instructions
- Add a login and password box to your website.
- Within the login box code, place the following HTML code fragment.
<html>
<head/>
<body>
<form name="frmlogin"
id="frmlogin"
method="post"
action="https://mycompany.egnyte.com/loginDomain.do">
<input id="j_username" type="text" name="user.userName" />
<input id="j_password" type="password" name="user.password" />
<button name="submit" value="submit" type="submit" />
</form>
</body>
</html>
Replace mycompany with the sub-domain you have signed up for. So, if you access Egnyte from http://abc.egnyte.com, then use abc instead of mycompany.
3. If you want to require domain, login, and password fields, please use the next set of HTML code.
<html>
<head>
<style>
*{
font: 12px arial, sans-serif;
}
</style>
<script>
function login(){
var domainName = document.getElementById("j_domain").value;
if(domainName == '' || document.getElementById("j_username").value == '' || document.getElementById("j_password").value == ''){
return;
}
document.frmlogin.action = "https://" + domainName + ".egnyte.com/loginDomain.do";
document.frmlogin.submit();
}
</script>
</head>
<body>
<form name="frmlogin" id="frmlogin" method="post" onsubmit="login();">
Domain: <input id="j_domain" type="text" />
Username: <input id="j_username" type="text" name="user.userName" />
Password: <input id="j_password" type="password" name="user.password" />
<input id="btnLogin" name="btnLogin" value="Login" type="submit" text="Login" />
</form>
</body>
</html>