Skip to content

Commit

Permalink
fix: Use a prompt instead of auto login (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 authored Jun 13, 2024
1 parent 7466211 commit 6f4c790
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions web/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,16 @@ <h5 data-i18n="Login" class="portlet__head">Login</h5>
});
</script>
<script>
// 用户为空尝试自动登录
// 用户为空,提示
if ('{{.EmptyUser}}' === 'true') {
document.querySelectorAll(".login_btn").forEach(($el) => {
$el.click()
})
showMessage({
content: i18n({
"en": "You have not set up a user yet, just click the Login button directly",
"zh-cn": "尚未设置用户, 请直接点击登录",
}),
type: "info",
duration: 60000,
});
}
</script>
</html>

0 comments on commit 6f4c790

Please sign in to comment.