Простая регистрация: /register, автовход, ALLOW_REGISTRATION, лимит для новых

This commit is contained in:
apuc committed 2026-09-16 12:30:30 +03:00
1 parent adf6fd24f7
commit 963c29084c
5 files changed
+141 -3

No files matched your search

+4
View File
@@ -29,6 +29,9 @@
button:hover { background: var(--accent-hover); }
.error { color: var(--red); font-size: 13px; text-align: center; margin-top: 10px;
min-height: 20px; }
.link { text-align: center; margin-top: 14px; font-size: 13px; }
.link a { color: var(--accent); text-decoration: none; }
.link a:hover { color: var(--accent-hover); }
</style>
</head>
<body>
@@ -39,6 +42,7 @@
<input type="password" id="password" placeholder="Пароль" autocomplete="current-password">
<button onclick="doLogin()">Войти</button>
<div id="msg" class="error"></div>
<div class="link">Нет аккаунта? <a href="/register">Зарегистрироваться</a></div>
</div>
<script>
async function doLogin() {