Compare commits
16 Commits
b442fb9999
...
1f23ebfe2d
Author | SHA1 | Date | |
---|---|---|---|
1f23ebfe2d | |||
d6d8d7d6ca | |||
de427689f4 | |||
dd7288d1c2 | |||
86828a67d0 | |||
cb41e61c47 | |||
8cb62dbacb | |||
d5ca5812a1 | |||
41a96b4ca2 | |||
89422aad2a | |||
f15a20589b | |||
4715a758a3 | |||
afd7e9369d | |||
e9998b9e8e | |||
fe81014794 | |||
f308bca1fb |
@ -43,5 +43,7 @@ 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 random
|
||||
import secrets
|
||||
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(random.choice(string.ascii_lowercase) for i in range(64))
|
||||
ACCESS_TOKEN = "".join(secrets.choice(string.ascii_lowercase) for i in range(64))
|
||||
|
||||
|
||||
ALLOWED_PATHS = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user