Compare commits

..

No commits in common. "fe81014794b6682a97db67c2d5d1b1fbf11ef605" and "c6b518bd152b3a9f7b0adae5cb2e795272962af2" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -43,7 +43,5 @@ def create_app():
return render_template("index.html") return render_template("index.html")
print(f"Jon started. Token: {auth.ACCESS_TOKEN}", file=sys.stderr) print(f"Jon started. Token: {auth.ACCESS_TOKEN}", file=sys.stderr)
# TODO: Get host and port from config
print(f"http://localhost:5000/?token={auth.ACCESS_TOKEN}", file=sys.stderr)
return app return app

View File

@ -1,4 +1,4 @@
import secrets import random
import string import string
from flask import Blueprint, request, redirect, render_template, session from flask import Blueprint, request, redirect, render_template, session
@ -6,7 +6,7 @@ from flask import Blueprint, request, redirect, render_template, session
bp = Blueprint("auth", __name__, url_prefix="/auth") bp = Blueprint("auth", __name__, url_prefix="/auth")
ACCESS_TOKEN = "".join(secrets.choice(string.ascii_lowercase) for i in range(64)) ACCESS_TOKEN = "".join(random.choice(string.ascii_lowercase) for i in range(64))
ALLOWED_PATHS = [ ALLOWED_PATHS = [