Development
This commit is contained in:
parent
62fe75d7fd
commit
c5d1c7890a
10 changed files with 24 additions and 21 deletions
|
|
@ -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': []}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue