diff --git a/website/routes.py b/website/routes.py index 0018aa3..c8845b3 100644 --- a/website/routes.py +++ b/website/routes.py @@ -108,8 +108,11 @@ def get_user_info(user:User) -> dict: content = record.split(":") if len(content) > 2: content = ":".join(content[1:]) - else: + elif len(content) == 2: content = content[1] + else: + print(f"Invalid record format\n{record}",flush=True) + continue key = content.split("=")[0].lower() value = content.split("=")[1] if type == "profile": diff --git a/website/templates/home.html b/website/templates/home.html index 991624f..0d9063f 100644 --- a/website/templates/home.html +++ b/website/templates/home.html @@ -31,8 +31,6 @@ } p { - margin: 0; - padding: 20px; text-align: center; } @@ -45,8 +43,10 @@ font-size: 16px; background-color: #333; color: #fff; - border: none; + border: 1px solid #000; + border-radius: 5px; cursor: pointer; + margin: 10px; } a.button { @@ -57,7 +57,6 @@ font-size: 16px; background-color: #333; color: #fff; - border: none; cursor: pointer; text-align: center; text-decoration: none; @@ -69,7 +68,6 @@ button.loginbutton { /* Put in the centre of the screen */ - margin-left: 50%; margin-top: 20px; transform: translateX(-50%); @@ -84,7 +82,8 @@ font-size: 16px; background-color: #333; color: #fff; - border: none; + border: 1px solid #000; + border-radius: 5px; cursor: pointer; margin-right: 25px; } @@ -95,14 +94,23 @@ } input { - padding: 10px 20px; + padding: 10px 5px; font-size: 16px; background-color: #333; color: #fff; - border: none; + border: 1px solid #000; + border-radius: 5px; cursor: pointer; margin-right: 25px; } + + .card { + padding: 20px; + border-radius: 10px; + background-color: #333; + width: fit-content; + margin: auto; + } @@ -155,45 +163,44 @@ {% else %}
Login using a TXT record
+Login using a TXT record
+ Add this TXT record to any domain to verify +IDNS1 auth:login.hns.au={{uuid}}+ + +
IDNS1 auth:login.hns.au={{uuid}}- - -
Login with a previously verified domain
+ + +