drop the login footer note
Remove the deployment blurb and the token-storage hint from the sign-in page. They described implementation details rather than helping anyone sign in, and the token line exposed the storage mechanism to anyone looking at the screen. Also removes the now-unused .login-legal rule and the two locale keys behind it.
This commit is contained in:
@@ -24,8 +24,6 @@ export default {
|
|||||||
showPassword: 'Show password',
|
showPassword: 'Show password',
|
||||||
hidePassword: 'Hide password',
|
hidePassword: 'Hide password',
|
||||||
fillDefaults: 'Sign in with the default account',
|
fillDefaults: 'Sign in with the default account',
|
||||||
localDeploymentNote: 'Self-hosted · no telemetry · data never leaves this machine',
|
|
||||||
tokenHint: 'The token returned by POST /api/auth/login is stored in localStorage',
|
|
||||||
accessDenied: 'You do not have permission to access this resource.',
|
accessDenied: 'You do not have permission to access this resource.',
|
||||||
passwordMismatch: 'Passwords do not match',
|
passwordMismatch: 'Passwords do not match',
|
||||||
passwordTooShort: 'Password must be at least 6 characters',
|
passwordTooShort: 'Password must be at least 6 characters',
|
||||||
|
|||||||
@@ -24,8 +24,6 @@ export default {
|
|||||||
showPassword: '显示密码',
|
showPassword: '显示密码',
|
||||||
hidePassword: '隐藏密码',
|
hidePassword: '隐藏密码',
|
||||||
fillDefaults: '使用默认账号登录',
|
fillDefaults: '使用默认账号登录',
|
||||||
localDeploymentNote: '本地部署 · 无遥测 · 数据不出机器',
|
|
||||||
tokenHint: '登录后 POST /api/auth/login 返回的 token 存入 localStorage',
|
|
||||||
accessDenied: '你没有权限访问该资源',
|
accessDenied: '你没有权限访问该资源',
|
||||||
passwordMismatch: '两次密码不一致',
|
passwordMismatch: '两次密码不一致',
|
||||||
passwordTooShort: '密码长度至少 6 个字符',
|
passwordTooShort: '密码长度至少 6 个字符',
|
||||||
|
|||||||
@@ -170,10 +170,6 @@ function fillDefaultCredentials() {
|
|||||||
<button type="button" class="login-copy" @click="fillDefaultCredentials">
|
<button type="button" class="login-copy" @click="fillDefaultCredentials">
|
||||||
⧉ {{ t("login.fillDefaults") }}
|
⧉ {{ t("login.fillDefaults") }}
|
||||||
</button>
|
</button>
|
||||||
<p class="login-legal">
|
|
||||||
{{ t("login.localDeploymentNote") }}<br />
|
|
||||||
<b>{{ t("login.tokenHint") }}</b>
|
|
||||||
</p>
|
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -502,18 +498,6 @@ function fillDefaultCredentials() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-legal {
|
|
||||||
margin: 14px 0 0;
|
|
||||||
font-size: 10.5px;
|
|
||||||
line-height: 1.7;
|
|
||||||
color: var(--text-faint);
|
|
||||||
|
|
||||||
b {
|
|
||||||
color: $text-muted;
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: $breakpoint-mobile) {
|
@media (max-width: $breakpoint-mobile) {
|
||||||
.login-hd {
|
.login-hd {
|
||||||
padding: 26px 22px 0;
|
padding: 26px 22px 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user