fix: captcha full-width row, hide top-auth on anonymous submit page
This commit is contained in:
@@ -67,7 +67,7 @@ const App = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (page === 'install') { this.showPublic('install'); return; }
|
if (page === 'install') { this.showPublic('install'); return; }
|
||||||
if (page === 'home') { this.showPublic('home', param); return; }
|
if (page === 'home') { this.showPublic('home', param); document.getElementById('top-auth').classList.add('hidden'); return; }
|
||||||
if (page === 'login' || page === 'register' || page === 'forgot' || page === 'reset') { this.showPublic(page); return; }
|
if (page === 'login' || page === 'register' || page === 'forgot' || page === 'reset') { this.showPublic(page); return; }
|
||||||
if (!Auth.logged()) { location.hash = '#/login'; return; }
|
if (!Auth.logged()) { location.hash = '#/login'; return; }
|
||||||
|
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ const RegisterPage = {
|
|||||||
|
|
||||||
${this.captcha ? `
|
${this.captcha ? `
|
||||||
<div class="form-group"><label>人机验证</label>
|
<div class="form-group"><label>人机验证</label>
|
||||||
<div style="display:flex;align-items:center;gap:10px">
|
<div id="captcha-img" style="display:block;border:1px solid var(--g200);border-radius:var(--r);margin-bottom:8px;cursor:pointer;text-align:center" onclick="RegisterPage.refreshCaptcha()" title="点击刷新">${this.captcha.svg}</div>
|
||||||
<div id="captcha-img" style="flex-shrink:0;border:1px solid var(--g200);border-radius:var(--r);overflow:hidden;cursor:pointer" onclick="RegisterPage.refreshCaptcha()" title="点击刷新">${this.captcha.svg}</div>
|
<div style="display:flex;gap:8px">
|
||||||
<input type="text" id="captcha-a" placeholder="输入图片字符" required style="flex:1;max-width:150px">
|
<input type="text" id="captcha-a" placeholder="输入图片字符" required style="flex:1">
|
||||||
<input type="hidden" id="captcha-id" value="${this.captcha.id}">
|
<input type="hidden" id="captcha-id" value="${this.captcha.id}">
|
||||||
</div>
|
</div>
|
||||||
</div>` : ''}
|
</div>` : ''}
|
||||||
|
|||||||
Reference in New Issue
Block a user