Aktualizuj app/routes.py
This commit is contained in:
parent
384335c52b
commit
60e2f73008
1 changed files with 6 additions and 3 deletions
|
@ -15,6 +15,9 @@ load_dotenv()
|
|||
|
||||
@main.route("/")
|
||||
def home():
|
||||
is_logged_in = oidc.user_loggedin
|
||||
has_server = False
|
||||
if is_logged_in:
|
||||
username = oidc.user_getfield("preferred_username")
|
||||
server_path = f"./servers/mc-{username}"
|
||||
has_server = os.path.exists(server_path)
|
||||
|
|
Loading…
Add table
Reference in a new issue