Compare commits

..

No commits in common. "fdb13e8257d7517a71b31b3fbf2778291696ec70" and "bc8167a7247e84097a8786fa173c2f1c07b12768" have entirely different histories.

2 changed files with 1 additions and 6 deletions

View File

@ -14,7 +14,6 @@ from flask import (
)
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.triggers.cron import CronTrigger
from datetime import timedelta
import subprocess
import requests
import hashlib
@ -54,7 +53,6 @@ app = Flask(__name__)
app.config["APP_VERSION"] = get_app_ver()
app.secret_key = "ca943f6db6dd34823d36ab08d8d6f65d"
app.config["SESSION_COOKIE_NAME"] = "QUARK_AUTO_SAVE_SESSION"
app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(days=31)
app.json.ensure_ascii = False
app.json.sort_keys = False
app.jinja_env.variable_start_string = "[["
@ -123,14 +121,11 @@ def login():
):
logging.info(f">>> 用户 {username} 登录成功")
session["login"] = gen_md5(username + password)
session.permanent = True
return redirect(url_for("index"))
else:
logging.info(f">>> 用户 {username} 登录失败")
return render_template("login.html", message="登录失败")
if is_login():
return redirect(url_for("index"))
return render_template("login.html", error=None)

View File

@ -440,7 +440,7 @@
lastSuggestionsTime: 0,
isSearching: false,
},
activeTab: 'tasklist',
activeTab: 'config',
},
filters: {
ts2date: function (value) {