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