<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>
PKC Dashboard
</title>
<link href="//fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic" rel="stylesheet" type="text/css">
<link crossorigin="anonymous" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" rel="stylesheet">
<link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://mdweb.mmsi2.com/pkc/root/css/main.css" rel="stylesheet">
<link href="https://mdweb.mmsi2.com/pkc/root/css/client_branding.css" rel="stylesheet">
<link href="https://mdweb.mmsi2.com/pkc/root/assets/favicon.ico" rel="shortcut icon">
<link href="https://mdweb.mmsi2.com/pkc/root/assets/favicon.ico" rel="apple-touch-icon">
<link href="MD_icon.png" rel="apple-touch-icon">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<script crossorigin="anonymous" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" src="//code.jquery.com/jquery-2.2.4.min.js">
</script>
<script crossorigin="anonymous" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
</script>
<style>
#error-message {
display : none;
}
</style>
</head>
<body>
<form action="https://mdweb.mmsi2.com/pkc/default.pl" method="post" name="reset">
<input name="action" type="hidden" value="reset">
</form>
<form action="https://mdweb.mmsi2.com/pkc/default.pl" method="post" name="newmember">
<input name="action" type="hidden" value="newmember">
</form>
<main class="login content">
<form method="post" name="loginForm" onsubmit="return false;">
<div class="form-group" style="padding: 20px 0px;">
<img alt="Membership Director Logo" class="img-responsive" src="https://mdweb.mmsi2.com/pkc/root/assets/PCBR_Logo_Horizontal_280x83.png" style="margin: 0 auto;">
</div>
<div class="form-group">
<label class="sr-only" for="email">
MLS Login
</label>
<div class="input-group">
<span class="input-group-addon">
<span class="username-icon">
</span>
</span>
<input class="form-control" id="email" placeholder="MLS Login" type="text">
</div>
</div>
<div class="form-group">
<label class="sr-only" for="password">
Password
</label>
<div class="input-group">
<span class="input-group-addon">
<span class="password-icon">
</span>
</span>
<input class="form-control" id="password" placeholder="Password" type="password">
</div>
</div>
<div class="alert alert-danger" id="error-message">
</div>
<div class="form-group">
<button class="green large" id="btn-login" type="submit">
Log In
</button>
</div>
<div class="form-group">
<a href="javascript: void(0)" onclick="document.reset.submit();">
Forgot/Change Password
</a>
</div>
</form>
</main>
<!--[if IE 8]>
<script src="//cdnjs.cloudflare.com/ajax/libs/ie8/0.2.5/ie8.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<script src="https://cdn.auth0.com/js/polyfills/1.0/base64.min.js"></script>
<script src="https://cdn.auth0.com/js/polyfills/1.0/es5-shim.min.js"></script>
<![endif]-->
<script src="https://cdn.auth0.com/js/auth0/9.10/auth0.min.js">
</script>
<script src="https://cdn.auth0.com/js/polyfills/1.0/object-assign.min.js">
</script>
<script>
window.addEventListener('load', function() {
var config = JSON.parse(decodeURIComponent(escape(window.atob('eyJhc3NldHNVcmwiOiIiLCJhdXRoMERvbWFpbiI6Im1tc2ktcGtjLmF1dGgwLmNvbSIsImF1dGgwVGVuYW50IjoibW1zaS1wa2MiLCJjbGllbnRDb25maWd1cmF0aW9uQmFzZVVybCI6Imh0dHBzOi8vbW1zaS1wa2MuYXV0aDAuY29tLyIsImNhbGxiYWNrT25Mb2NhdGlvbkhhc2giOmZhbHNlLCJjYWxsYmFja1VSTCI6Imh0dHBzOi8vbWR3ZWIubW1zaTIuY29tL3NpbXBsZXNhbWwvbW9kdWxlLnBocC9zYW1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ly9tZHdlYi5tbXNpMi5jb20vcGtjL2xvZ2luLnBocD9pc3M9aHR0cHMlM0ElMkYlMkZtbXNpLXBrYy5hdXRoMC5jb20lMkYiLCJfY3NyZiI6ImdnRUlqRzQ1LTc5TEJsZVhjUjMwNHFmSjhxejZfemFoX3ZJcyIsIl9pbnRzdGF0ZSI6ImRlcHJlY2F0ZWQiLCJzdGF0ZSI6ImhLRm8yU0F3VW1WNVNuaHhOM1JGZW1KaFowSTJSelZzVTI5bWVFdEhUbmRhVEZGa2Q2RnVwV3h2WjJsdW8zUnBaTmtnT1RFdFNUSkNUVGRmTjA5T1UyRlNibGgxTTFwdWVGbENNMEZDVkhkRFRXT2pZMmxrMlNCc1FrdE5Uek5JTjFwaWFrdzFSbE0zVG1wT1lsVXlPSGhoUVRGVVJuVTFjUSJ9LCJ3aWRnZXRVcmwiOiJodHRwczovL2Nkbi5hdXRoMC5jb20vdzIvYXV0aDAtd2lkZ2V0LTUuMi5taW4uanMiLCJpc1RoaXJkUGFydHlDbGllbnQiOmZhbHNlLCJhdXRob3JpemF0aW9uU2VydmVyIjp7InVybCI6Imh0dHBzOi8vbW1zaS1wa2MuYXV0aDAuY29tIiwiaXNzdWVyIjoiaHR0cHM6Ly9tbXNpLXBrYy5hdXRoMC5jb20vIn0sImNvbG9ycyI6e319'))));
var loginHint = config.extraParams.login_hint;
var params = Object.assign({
domain: config.auth0Domain,
clientID: config.clientID,
redirectUri: config.callbackURL,
prefill: loginHint ? {
email: loginHint,
username: loginHint
} : null,
responseType: 'code'
}, config.internalOptions);
var webAuth = new auth0.WebAuth(params);
var databaseConnection = 'pkcApiConnection';
function login(e) {
e.preventDefault();
var username = document.getElementById('email').value;
var password = document.getElementById('password').value;
webAuth.login({
realm: databaseConnection,
username: username,
password: password
}, function(err) {
if (err) displayError(err);
});
}
function signup() {
var email = document.getElementById('email').value;
var password = document.getElementById('password').value;
webAuth.redirect.signupAndLogin({
connection: databaseConnection,
email: email,
password: password
}, function(err) {
if (err) displayError(err);
});
}
function displayError(err) {
var errorMessage = document.getElementById('error-message');
errorMessage.innerHTML = err.description;
errorMessage.style.display = 'block';
}
if (typeof loginHint !== "undefined") {
$("#email").val(loginHint);
$("#password").focus();
}
document.getElementById('btn-login').addEventListener('click', login);
});
</script>
</body>
</html>