Development

This commit is contained in:
Matthew Grotke 2026-05-24 00:47:43 -04:00
parent 62fe75d7fd
commit c5d1c7890a
10 changed files with 24 additions and 21 deletions

View file

@ -1,16 +1,16 @@
from flask import Blueprint, request, session, redirect, flash
import json, bcrypt
from auth import require_level
from config_utils import ACCOUNTS_FILE
import sanitize
bp = Blueprint('action_log_in', __name__)
DATA_DIR = '/data'
def _load_accounts():
try:
with open(f'{DATA_DIR}/authorized_accounts.json') as f:
with open(ACCOUNTS_FILE) as f:
return json.load(f)
except Exception:
return {'accounts': []}