<!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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ly9tZHdlYi5tbXNpMi5jb20vcGtjL2xvZ2luLnBocD9pc3M9aHR0cHMlM0ElMkYlMkZtbXNpLXBrYy5hdXRoMC5jb20lMkYiLCJfY3NyZiI6IndYc0pjM3NXLUZseWVkczhxQ19RU1R1bUhUSzdXQjZ2LWJPSSIsIl9pbnRzdGF0ZSI6ImRlcHJlY2F0ZWQiLCJzdGF0ZSI6ImhLRm8yU0J2YjNaeVVEUmpTekJsUVdaTVZYSjViMFZZYjJka1ZFVmpkMWhwWkdoS042RnVwV3h2WjJsdW8zUnBaTmtnVm01UGMwdzRTMlYzYW5Wc09VVm9jVnBTWmtSTVNVTklObGRhWkVocE1tLWpZMmxrMlNCc1FrdE5Uek5JTjFwaWFrdzFSbE0zVG1wT1lsVXlPSGhoUVRGVVJuVTFjUSJ9LCJ3aWRnZXRVcmwiOiJodHRwczovL2Nkbi5hdXRoMC5jb20vdzIvYXV0aDAtd2lkZ2V0LTUuMi5taW4uanMiLCJpc1RoaXJkUGFydHlDbGllbnQiOmZhbHNlLCJhdXRob3JpemF0aW9uU2VydmVyIjp7InVybCI6Imh0dHBzOi8vbW1zaS1wa2MuYXV0aDAuY29tIiwiaXNzdWVyIjoiaHR0cHM6Ly9tbXNpLXBrYy5hdXRoMC5jb20vIn0sImNvbG9ycyI6e319'))));
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>