Remove repository import from setup_utils and move password-hash helper to setup service

This commit is contained in:
2026-04-17 15:38:41 +02:00
parent e70d98809b
commit 74ff4cb4b8
4 changed files with 4 additions and 15 deletions

View File

@@ -1,13 +1,3 @@
"""Setup-related utilities shared by multiple services."""
from __future__ import annotations
from app.repositories import settings_repo
_KEY_PASSWORD_HASH = "master_password_hash"
_KEY_SETUP_DONE = "setup_completed"
async def get_password_hash(db):
"""Return the stored master password hash or None."""
return await settings_repo.get_setting(db, _KEY_PASSWORD_HASH)