modified: public/script.js
This commit is contained in:
parent
0c6770d5ae
commit
3331aa1d7f
@ -13,7 +13,6 @@ $(document).ready(function() {
|
|||||||
$('#form1').submit(function(event) {
|
$('#form1').submit(function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const username = $('#register-username').val().trim();
|
const username = $('#register-username').val().trim();
|
||||||
const email = $('#register-email').val().trim(); // 不用于后台,只是前端展示
|
|
||||||
const password = $('#register-password').val().trim();
|
const password = $('#register-password').val().trim();
|
||||||
|
|
||||||
if (!username || !password) {
|
if (!username || !password) {
|
||||||
|
Loading…
Reference in New Issue
Block a user