diff --git a/main b/main index 64a1f11..dd458c0 100644 --- a/main +++ b/main @@ -654,7 +654,7 @@ def settings(): userCookie = get_session(usersession) user = get_user(userCookie["id"]) - return render_template("settings.html", userdata=user) + return render_template("settings.html", userdata=user, createddate=datetime.datetime.utcfromtimestamp(int(str(user["created"]).split(".")[0])).strftime("%Y-%m-%d %H:%m:%S")) else: return redirect("/") diff --git a/templates/settings.html b/templates/settings.html index c3d16f7..7bb8bbc 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -25,16 +25,16 @@
-
- {% if userdata.administrator == 1 %} - Administrator

- {% endif %} - Logged in as {{ userdata.username }} -

- View my public profile
- Log out -
+
+

Account

+

Account Type: {% if userdata.administrator == 1 %}Administrator{% else %}Normal{% endif %}
+ Username: {{ userdata.username }}
+ User ID: {{ userdata.id }}
+ Created on: {{ createddate }}

+
+ View my public profile
+ Log out +
- \ No newline at end of file