fix register function

Signed-off-by: Chenx221 <chenx221@yandex.com>
This commit is contained in:
Chenx221 2023-06-08 10:26:41 +08:00
parent ef64e58c86
commit d7d162d286

View File

@ -117,7 +117,7 @@
<button type="submit" class="btn btn-primary btn-block mb-4">登录</button>
<%-- 显示错误信息 --%>
<!-- Register buttons -->
<div class="text-center">
<div class="text-center" style="margin-bottom: 25px;">
<p>还没有账号? <a href="#!">注册一个</a></p>
</div>
</form>
@ -128,15 +128,15 @@
<h1 class="text-center mb-4" style="font-family: 'Noto Sans SC Light',serif">
用户注册</h1>
<div class="form-outline mb-4">
<input type="text" id="registerUsername" class="form-control"/>
<input type="text" id="registerUsername" class="form-control" name="username"/>
<label class="form-label" for="registerUsername">用户名</label>
</div>
<div class="form-outline mb-4">
<input type="password" id="registerPassword" class="form-control"/>
<input type="password" id="registerPassword" class="form-control" name="password"/>
<label class="form-label" for="registerPassword">密码</label>
</div>
<div class="form-outline mb-4">
<input type="password" id="registerRepeatPassword" class="form-control"/>
<input type="password" id="registerRepeatPassword" class="form-control" name="re-password"/>
<label class="form-label" for="registerRepeatPassword">重复密码</label>
</div>
<div class="form-check d-flex justify-content-center mb-4">
@ -145,7 +145,7 @@
type="checkbox"
value=""
id="registerCheck"
checked
required
aria-describedby="registerCheckHelpText"
/>
<label class="form-check-label" for="registerCheck">