Feature disable password login #378

Merged
LukeGus merged 6 commits from feature-disable-password-login into dev-1.8.0 2025-10-08 00:59:44 +00:00
Showing only changes of commit fbf9c23e21 - Show all commits

View File

@@ -852,7 +852,7 @@ router.post("/login", async (req, res) => {
const row = db.$client
.prepare("SELECT value FROM settings WHERE key = 'allow_password_login'")
.get();
if (row && (row as any).value !== "true") {
if (row && (row as { value: string }).value !== "true") {
return res
.status(403)
.json({ error: "Password authentication is currently disabled" });