|
|
@ -31,6 +31,7 @@ |
|
|
|
<a id="sign_up" class="ui button" onclick="submit()">注册</a> |
|
|
|
<a id="sign_up" class="ui button" onclick="submit()">注册</a> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.5.0/js/md5.min.js"></script> |
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
function show_error(error) { |
|
|
|
function show_error(error) { |
|
|
|
$("#error_info").text(error); |
|
|
|
$("#error_info").text(error); |
|
|
@ -45,7 +46,7 @@ function submit() { |
|
|
|
show_error("两次输入的密码不一致"); |
|
|
|
show_error("两次输入的密码不一致"); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
password = $.md5($("#password1").val() + "syzoj2_xxx") |
|
|
|
password = md5($("#password1").val() + "syzoj2_xxx") |
|
|
|
$("#sign_up").addClass("loading"); |
|
|
|
$("#sign_up").addClass("loading"); |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
url: '/api/sign_up', |
|
|
|
url: '/api/sign_up', |
|
|
|