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',
|
||||
hidePassword: 'Hide password',
|
||||
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.',
|
||||
passwordMismatch: 'Passwords do not match',
|
||||
passwordTooShort: 'Password must be at least 6 characters',
|
||||
|
||||
@@ -24,8 +24,6 @@ export default {
|
||||
showPassword: '显示密码',
|
||||
hidePassword: '隐藏密码',
|
||||
fillDefaults: '使用默认账号登录',
|
||||
localDeploymentNote: '本地部署 · 无遥测 · 数据不出机器',
|
||||
tokenHint: '登录后 POST /api/auth/login 返回的 token 存入 localStorage',
|
||||
accessDenied: '你没有权限访问该资源',
|
||||
passwordMismatch: '两次密码不一致',
|
||||
passwordTooShort: '密码长度至少 6 个字符',
|
||||
|
||||
@@ -170,10 +170,6 @@ function fillDefaultCredentials() {
|
||||
<button type="button" class="login-copy" @click="fillDefaultCredentials">
|
||||
⧉ {{ t("login.fillDefaults") }}
|
||||
</button>
|
||||
<p class="login-legal">
|
||||
{{ t("login.localDeploymentNote") }}<br />
|
||||
<b>{{ t("login.tokenHint") }}</b>
|
||||
</p>
|
||||
</footer>
|
||||
</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) {
|
||||
.login-hd {
|
||||
padding: 26px 22px 0;
|
||||
|
||||
Reference in New Issue
Block a user