|
@@ -76,12 +76,12 @@
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
{if $public_setting['reg_email_verify'] && $config['enable_change_email']}
|
|
|
- <button id="email-verify" class="btn btn-link"
|
|
|
+ <button class="btn btn-link"
|
|
|
hx-post="/user/send" hx-swap="none"
|
|
|
hx-vals='js:{ email: document.getElementById("newemail").value }'>
|
|
|
获取验证码
|
|
|
</button>
|
|
|
- <button id="modify-email" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/email" hx-swap="none"
|
|
|
hx-vals='js:{
|
|
|
newemail: document.getElementById("new-email").value,
|
|
@@ -90,13 +90,13 @@
|
|
|
修改
|
|
|
</button>
|
|
|
{elseif $config['enable_change_email']}
|
|
|
- <button id="modify-email" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/email" hx-swap="none"
|
|
|
hx-vals='js:{ newemail: document.getElementById("new-email").value }'>
|
|
|
修改
|
|
|
</button>
|
|
|
{else}
|
|
|
- <button id="modify-email" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
disabled>不允许修改
|
|
|
</button>
|
|
|
{/if}
|
|
@@ -116,7 +116,7 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="modify-username" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/username" hx-swap="none"
|
|
|
hx-vals='js:{ newusername: document.getElementById("new-username").value }'>
|
|
|
修改
|
|
@@ -174,7 +174,7 @@
|
|
|
{if $user->im_type !== 0}
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="unbind-im" class="btn btn-red ms-auto"
|
|
|
+ <button class="btn btn-red ms-auto"
|
|
|
hx-post="/user/unbind_im" hx-swap="none">
|
|
|
解绑
|
|
|
</button>
|
|
@@ -238,16 +238,16 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="reset-2fa" class="btn btn-link"
|
|
|
+ <button class="btn btn-link"
|
|
|
hx-post="/user/ga_reset" hx-swap="none" >
|
|
|
重置
|
|
|
</button>
|
|
|
- <button id="test-2fa" class="btn btn-link"
|
|
|
+ <button class="btn btn-link"
|
|
|
hx-post="/user/ga_check" hx-swap="none"
|
|
|
hx-vals='js:{ code: document.getElementById("ga-test-code").value }'>
|
|
|
测试
|
|
|
</button>
|
|
|
- <button id="save-2fa" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/ga_set" hx-swap="none"
|
|
|
hx-vals='js:{ enable: document.getElementById("ga-enable").value }'>
|
|
|
设置
|
|
@@ -268,14 +268,14 @@
|
|
|
</div>
|
|
|
<div class="mb-3">
|
|
|
<form>
|
|
|
- <input id="new-password" type="password"
|
|
|
+ <input id="new_password" type="password"
|
|
|
class="form-control" placeholder="输入新密码"
|
|
|
autocomplete="off">
|
|
|
</form>
|
|
|
</div>
|
|
|
<div class="mb-3">
|
|
|
<form>
|
|
|
- <input id="repeat-new-password" type="password"
|
|
|
+ <input id="confirm_new_password" type="password"
|
|
|
class="form-control" placeholder="再次输入新密码"
|
|
|
autocomplete="off">
|
|
|
</form>
|
|
@@ -283,12 +283,12 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="modify-login-passwd" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/password" hx-swap="none"
|
|
|
hx-vals='js:{
|
|
|
- pwd: document.getElementById("new-password").value,
|
|
|
- repwd: document.getElementById("repeat-new-password").value,
|
|
|
- oldpwd: document.getElementById("password").value
|
|
|
+ new_password: document.getElementById("new_password").value,
|
|
|
+ confirm_new_password: document.getElementById("confirm_new_password").value,
|
|
|
+ password: document.getElementById("password").value
|
|
|
}'>
|
|
|
修改
|
|
|
</button>
|
|
@@ -319,7 +319,7 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="modify-user-method" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/method" hx-swap="none"
|
|
|
hx-vals='js:{ method: document.getElementById("user-method").value }'>
|
|
|
修改
|
|
@@ -337,7 +337,7 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="reset-sub-url" class="btn btn-primary ms-auto bg-red"
|
|
|
+ <button class="btn btn-primary ms-auto bg-red"
|
|
|
hx-post="/user/url_reset" hx-swap="none">
|
|
|
重置
|
|
|
</button>
|
|
@@ -355,7 +355,7 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="reset-passwd" class="btn btn-primary ms-auto bg-red"
|
|
|
+ <button class="btn btn-primary ms-auto bg-red"
|
|
|
hx-post="/user/passwd_reset" hx-swap="none">
|
|
|
重置
|
|
|
</button>
|
|
@@ -390,7 +390,7 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="modify-daily-mail" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/daily_mail" hx-swap="none"
|
|
|
hx-vals='js:{ mail: document.getElementById("daily-mail").value }'>
|
|
|
修改
|
|
@@ -419,7 +419,7 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="modify-contact-method" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/contact_method" hx-swap="none"
|
|
|
hx-vals='js:{ contact: document.getElementById("contact-method").value }'>
|
|
|
修改
|
|
@@ -444,7 +444,7 @@
|
|
|
</div>
|
|
|
<div class="card-footer">
|
|
|
<div class="d-flex">
|
|
|
- <button id="modify-user-theme" class="btn btn-primary ms-auto"
|
|
|
+ <button class="btn btn-primary ms-auto"
|
|
|
hx-post="/user/theme" hx-swap="none"
|
|
|
hx-vals='js:{ theme: document.getElementById("user-theme").value }'>
|
|
|
修改
|
|
@@ -498,7 +498,7 @@
|
|
|
</div>
|
|
|
<div class="py-3">
|
|
|
<form>
|
|
|
- <input id="confirm-passwd" type="password" class="form-control"
|
|
|
+ <input id="confirm_kill_password" type="password" class="form-control"
|
|
|
placeholder="输入登录密码" autocomplete="off">
|
|
|
</form>
|
|
|
</div>
|
|
@@ -512,9 +512,9 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
<div class="col">
|
|
|
- <button href="#" id="confirm-kill" class="btn btn-danger w-100" data-bs-dismiss="modal"
|
|
|
+ <button href="#" class="btn btn-danger w-100" data-bs-dismiss="modal"
|
|
|
hx-post="/user/kill" hx-swap="none"
|
|
|
- hx-vals='js:{ passwd: document.getElementById("confirm-passwd").value }'>
|
|
|
+ hx-vals='js:{ password: document.getElementById("confirm_kill_password").value }'>
|
|
|
确认
|
|
|
</button>
|
|
|
</div>
|