mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Added Logout Button
This commit is contained in:
parent
f840bd4b20
commit
f971c0811f
2 changed files with 7 additions and 0 deletions
|
@ -5,8 +5,13 @@ from flask_security.models import fsqla_v2 as fsqla
|
|||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
app.debug = True # DEBUG
|
||||
|
||||
app.config["SECURITY_EMAIL_VALIDATOR_ARGS"] = {
|
||||
"check_deliverability": False
|
||||
} # Don't check email deliverability # DEBUG
|
||||
|
||||
app.config["SERVER_NAME"] = "127.0.0.1:5000" # DEBUG
|
||||
|
||||
app.config["SECRET_KEY"] = "dev"
|
||||
|
|
|
@ -412,3 +412,5 @@ with app.app_context():
|
|||
category="Active semester",
|
||||
)
|
||||
)
|
||||
|
||||
admin.add_link(MenuLink(name="Logout", url=url_for("security.logout")))
|
||||
|
|
Loading…
Reference in a new issue