mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 04:23:01 +00:00
salt passwords using userid
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
"""
|
||||
Prepares the server for use.
|
||||
"""
|
||||
|
||||
from dataclasses import asdict
|
||||
import uuid
|
||||
from app.db.sqlite.settings import load_settings
|
||||
from app.setup.files import create_config_dir
|
||||
from app.setup.sqlite import run_migrations, setup_sqlite
|
||||
@@ -28,6 +27,9 @@ def run_setup():
|
||||
config = UserConfig()
|
||||
config.setup_config_file()
|
||||
|
||||
if not config.userId:
|
||||
config.userId = str(uuid.uuid4())
|
||||
|
||||
instance_key = get_random_str()
|
||||
|
||||
# INFO: Load all tracks, albums, and artists into memory
|
||||
|
||||
Reference in New Issue
Block a user