Created
August 10, 2017 12:32
-
-
Save anonymous/b8a27b32f405e0baf4e72b179a2e0bfe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="description" content="Manhattan Associates Store Login" /> | |
<meta name="keywords" content="" /> | |
<title>Omni Authentication Server</title> | |
<link rel="stylesheet" type="text/css" href="/css/login.css" /> | |
<link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css" /> | |
</head> | |
<script> | |
/*<![CDATA[*/ | |
function sendInfo(form) { | |
console.log("Setting up csrf request."); | |
var xhr = new XMLHttpRequest(), | |
method = "GET", | |
url = "/csrf"; | |
xhr.open(method, url, true); | |
xhr.onreadystatechange = function () { | |
if(xhr.readyState === XMLHttpRequest.DONE && xhr.status === 200) { | |
var csrfToken=JSON.parse(xhr.responseText); | |
console.log("Setting csrf parameterName "+csrfToken.parameterName+" value "+csrfToken.token); | |
document.getElementById(csrfToken.parameterName).value = csrfToken.token; | |
form.submit(); | |
} | |
}; | |
xhr.send(); | |
} | |
/*]]>*/ | |
</script> | |
<body> | |
<div class="container"> | |
<!-- Header --> | |
<div id="login-header" class="header"> | |
<img id="login-header-img" src="/images/logo.svg" alt="Logo" /> | |
<p id="login-header-txt01" class="app-label">OMNI ENTERPRISE</p> | |
<p id="login-header-txt02" class="welcome-label">Welcome! Please log in.</p> | |
</div> | |
<!-- Content --> | |
<div class="content"> | |
<form id="login-form" method="post" role="form" action="/org_login" onsubmit="event.preventDefault(); sendInfo(this);"> | |
<div class="form-field"> | |
<input id="login-username" type="text" tabindex="1" class="form-control" name="username" value="" placeholder="Username" /> | |
</div> | |
<div class="form-field"> | |
<input id="login-password" type="password" tabindex="2" class="form-control" name="password" placeholder="Password" /> | |
</div> | |
<input type="hidden" id="_csrf" name="_csrf" value="5bd4caaf-7159-4463-9ed7-9befa0224276" /> | |
<div> | |
<input class="button" type="submit" name="login-submit" id="login-submit" tabindex="3" value="Log in" /> | |
</div> | |
</form> | |
<div class="azure-link-container"> | |
<a href="/login">Login with Azure AD</a> | |
</div> | |
</div> | |
<!-- Footer --> | |
<div class="footer"></div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment