提交 139e8f9a 编写于 作者: M MaxKey

registration fix

上级 9a29f958
......@@ -6,7 +6,7 @@ global.change.language.zh=\u4e2d\u6587
global.text.welcome=\u6b22\u8fce\u60a8
global.text.manage=\u7ba1\u7406
global.text.copyright=\u7248\u6743\u6240\u6709
global.text.copyright.content=Copyright 2021
global.text.copyright.content=Copyright
global.text.copyright.license=Licensed under the Apache License, Version 2.0
global.text.logout=\u9000\u51fa
global.logout.tip=\u6ce8\u9500\u6210\u529f
......
......@@ -6,7 +6,7 @@ global.change.language.zh=\u4e2d\u6587
global.text.welcome=Welcome
global.text.manage=Manage
global.text.copyright=CopyRight
global.text.copyright.content=Copyright 2021
global.text.copyright.content=Copyright
global.text.copyright.license=Licensed under the Apache License, Version 2.0
global.text.logout=Logout
global.logout.tip=Logout Tip
......
......@@ -6,7 +6,7 @@ global.change.language.zh=\u4e2d\u6587
global.text.welcome=\u6b22\u8fce\u60a8
global.text.manage=\u7ba1\u7406
global.text.copyright=\u7248\u6743\u6240\u6709
global.text.copyright.content=Copyright 2021
global.text.copyright.content=Copyright
global.text.copyright.license=Licensed under the Apache License, Version 2.0
global.text.logout=\u9000\u51fa
global.logout.tip=\u6ce8\u9500\u6210\u529f
......
......@@ -5,7 +5,7 @@
<TR>
<TD align="center" valign="middle" class="footer ">
MaxKey&nbsp;&nbsp;<@locale code="global.application.version"/><br>
&copy; <@locale code="global.text.copyright.content"/>&nbsp;&nbsp; <a href="https://www.maxkey.top/" target="_blank">https://www.maxkey.top/</a><br>
&copy; <@locale code="global.text.copyright.content"/>${.now?string["yyyy"]}&nbsp;&nbsp; <a href="https://www.maxkey.top/" target="_blank">https://www.maxkey.top/</a><br>
<@locale code="global.text.copyright.license"/><br>
</TD>
</TR>
......
......@@ -6,7 +6,7 @@ global.change.language.zh=\u4e2d\u6587
global.text.welcome=\u6b22\u8fce\u60a8
global.text.manage=\u7ba1\u7406
global.text.copyright=\u7248\u6743\u6240\u6709
global.text.copyright.content=Copyright 2021
global.text.copyright.content=Copyright
global.text.copyright.license=Licensed under the Apache License, Version 2.0
global.text.logout=\u9000\u51fa
global.logout.tip=\u6ce8\u9500\u6210\u529f
......
......@@ -6,7 +6,7 @@ global.change.language.zh=\u4e2d\u6587
global.text.welcome=Welcome
global.text.manage=Manage
global.text.copyright=CopyRight
global.text.copyright.content=Copyright 2021
global.text.copyright.content=Copyright
global.text.copyright.license=Licensed under the Apache License, Version 2.0
global.text.logout=Logout
global.logout.tip=Tip
......
......@@ -6,7 +6,7 @@ global.change.language.zh=\u4e2d\u6587
global.text.welcome=\u6b22\u8fce\u60a8
global.text.manage=\u7ba1\u7406
global.text.copyright=\u7248\u6743\u6240\u6709
global.text.copyright.content=Copyright 2021
global.text.copyright.content=Copyright
global.text.copyright.license=Licensed under the Apache License, Version 2.0
global.text.logout=\u9000\u51fa
global.logout.tip=\u6ce8\u9500\u6210\u529f
......
......@@ -7,7 +7,7 @@
<TR>
<TD align="center" valign="middle" class="footer ">
MaxKey&nbsp;&nbsp;<@locale code="global.application.version"/><br>
&copy; <@locale code="global.text.copyright.content"/>&nbsp;&nbsp; <a href="https://www.maxkey.top/" target="_blank">https://www.maxkey.top/</a>
&copy; <@locale code="global.text.copyright.content"/>${.now?string["yyyy"]}&nbsp;&nbsp; <a href="https://www.maxkey.top/" target="_blank">https://www.maxkey.top/</a>
<br>
<@locale code="global.text.copyright.license"/><br>
</TD>
......
......@@ -6,71 +6,9 @@
<#include "../layout/common.cssjs.ftl">
<script type="text/javascript">
$(function(){
$('#j_captchaimg').click(function () {//
$(this).attr("src", "<@base />/captcha");
});
$('#btn_save').on('click',function(){
if($('#emailMobile').val()==''){
alert('<@locale code="forgotpassword.emailmobile"/>'+': empty');
return false;
}
if($('#username').val()==''){
alert('<@locale code="userinfo.username"/>'+': empty');
return false;
}
if($('#displayName').val()==''){
alert('<@locale code="userinfo.displayName"/>'+': empty');
return false;
}
if($('#password').val()==''){
alert('<@locale code="login.text.password"/>'+': empty');
return false;
}
if($('#confirmpassword').val()==''){
alert('<@locale code="login.password.confirmPassword"/>'+': empty');
return false;
}
if($('#password').val()!=$('#confirmpassword').val()){
alert('<@locale code="login.password.confirmPassword"/>'+''+'<@locale code="login.text.password"/>'+': error');
return false;
}
formSubmit();
})
function formSubmit(){
var uname=$('#username').val();
var pwd=$('#password').val();
var eMobile=$('#emailMobile').val();
var dName=$('#displayName').val();
$.ajax({
type:"POST",
url:"<@base/>/registeron",
data:{
username:uname,
password:pwd,
emailMobile:eMobile,
displayName:dName
},
success:function(data){
if(data.code=='0'){
alert(data.message);
window.location.href="<@base/>/login";
}else{
alert(data.message);
}
},
error:function(jqXHR){
alert("error:"+ jqXHR.status);
}
});
}
});
</script>
</head>
......@@ -82,7 +20,10 @@ $(function(){
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<form action="<@base/>/registration/registeron" method="post" class="needs-validation" novalidate>
<form id="actionForm"
action="<@base/>/registration/registeron"
forward="<@base/>/login"
method="post" class="needs-validation" novalidate>
<table class="table table-bordered">
<tr>
<td><@locale code="forgotpassword.emailmobile"/></td>
......@@ -110,7 +51,7 @@ $(function(){
<td><input required="" class="form-control" type='password' id="confirmpassword" name="confirmpassword" tabindex="2" value="" /></td>
</tr>
<tr>
<td colspan="2"><input id="btn_save" class="button btn btn-lg btn-primary btn-block" type="button" value="<@locale code="login.text.register" />"/></td>
<td colspan="2"><input class="button btn btn-lg btn-primary btn-block" type="submit" value="<@locale code="login.text.register" />"/></td>
</tr>
</table>
</form>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册