Compare commits
14 Commits
1f23ebfe2d
...
b442fb9999
Author | SHA1 | Date | |
---|---|---|---|
b442fb9999 | |||
0cb3ed9238 | |||
9e6e6e391c | |||
4324311441 | |||
be53deb9ce | |||
a4c5659701 | |||
18abd38987 | |||
8be0f0ddb7 | |||
43407d7890 | |||
902b636aba | |||
6c7bb1042c | |||
c30ae58829 | |||
b30ee53e9d | |||
2d1c086e12 |
@ -43,7 +43,5 @@ def create_app():
|
||||
return render_template("index.html")
|
||||
|
||||
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
|
||||
|
@ -1,4 +1,4 @@
|
||||
import secrets
|
||||
import random
|
||||
import string
|
||||
|
||||
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")
|
||||
|
||||
|
||||
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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user