forked from lza_menace/suchwow
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
405 B
16 lines
405 B
from flask import current_app, session
|
|
|
|
|
|
def allowed_file(filename):
|
|
return "." in filename and \
|
|
filename.rsplit(".", 1)[1].lower() in current_app.config["ALLOWED_EXTENSIONS"]
|
|
|
|
def debug_login():
|
|
session["auth"] = {
|
|
"state": "active",
|
|
"session_state": "debug",
|
|
"code": "abcdefg",
|
|
"preferred_username": "debuguser",
|
|
"debug": True
|
|
}
|
|
return |