3.5 KiB
3.5 KiB
<html>
<head>
<script type="text/javascript" src="standalone/config.js?_=3.4-beta-3-774"></script>
<script type="text/javascript" src="js/jquery-3.5.1.js?_=3.4-beta-3-774"></script>
<script type="text/javascript">
$(document).ready(function() {
var status = $('#status_message');
if(window.location.href.indexOf('error=loginfailed') >= 0)
$('
').text('Login Failed ').appendTo(status);
if(window.location.href.indexOf('error=verifyfailed') >= 0)
$('
').text('Password Verify Error ').appendTo(status);
if(window.location.href.indexOf('error=registerfailed') >= 0)
$('
').text('Registration failed (bad passcode?) ').appendTo(status);
$('form')[0].setAttribute('action', config.url.login);
$('form')[1].setAttribute('action', config.url.register);
document.forms['login'].elements['j_username'].focus();
});
$(function(){
$('form[name=register]').submit(function(){
$.post($(this).attr('action'), $(this).serialize(), function(json) {
if(json.result == 'success')
window.location = 'index.html';
else
window.location = 'login.html?error=' + json.result;
}, 'json');
return false;
});
});
$(function(){
$('form[name=login]').submit(function(){
$.post($(this).attr('action'), $(this).serialize(), function(json) {
if(json.result == 'success')
window.location = 'index.html';
else
window.location = 'login.html?error=' + json.result;
}, 'json');
return false;
});
});
</script>
</head>
</html>
Minecraft Dynamic Map - Login/Register
Existing User: | ||||||||
---|---|---|---|---|---|---|---|---|
Enter user ID and password:
| ||||||||
Register New User: | ||||||||
Run '/dynmap webregister' and enter returned registration code, along with userid and password:
|