Development
This commit is contained in:
parent
44261e5b5c
commit
8a8e947fcf
9 changed files with 289 additions and 33 deletions
|
|
@ -78,6 +78,14 @@ def get_initial_manager_email():
|
|||
return str(cfg.get('initial_manager_email') or os.environ.get('INITIAL_MANAGER_EMAIL', '')).strip().lower()
|
||||
|
||||
|
||||
def is_single_user():
|
||||
return 'initial_manager_password' in _load_app_config()
|
||||
|
||||
|
||||
def get_initial_manager_password_hash():
|
||||
return _load_app_config().get('initial_manager_password', '')
|
||||
|
||||
|
||||
def get_credentials_key():
|
||||
"""Return a Fernet-compatible key derived from the credentials_key in app_config.json
|
||||
(or CREDENTIALS_KEY env var as fallback), or None if not set. SHA-256 hashes the raw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue