From dd3fb1eed0cc58bcfc10dbd7401b2efbc17e2c62 Mon Sep 17 00:00:00 2001 From: Alys Date: Sat, 14 Mar 2020 01:58:46 +1000 Subject: [PATCH] improve timestamps and authentication section --- .../src/components/admin-panel/index.vue | 64 +++++++++++++++---- 1 file changed, 50 insertions(+), 14 deletions(-) diff --git a/website/client/src/components/admin-panel/index.vue b/website/client/src/components/admin-panel/index.vue index 5412fe8dfc..8f37fa248b 100644 --- a/website/client/src/components/admin-panel/index.vue +++ b/website/client/src/components/admin-panel/index.vue @@ -26,7 +26,7 @@
-
+

@{{ hero.auth.local.username }}   /   {{ hero.profile.name }}

{{ hero._id }}   @@ -91,7 +91,7 @@
-
+
@@ -100,10 +100,39 @@ :class="{'open': expandAuth}" @click="expandAuth = !expandAuth" > - Authentication, Email, Timestamps + Timestamps, Authentication, Email Address
-
{{ hero.auth }}
+
Account created: + {{ formatDate(hero.auth.timestamps.created) }} +
+
Most recent cron: + {{ formatDate(hero.auth.timestamps.loggedin) }} +
+
"lastCron": + {{ formatDate(hero.lastCron) }} + (if different than above, cron crashed before finishing) +
+
Local authentication: + Yes,   + {{ hero.auth.local.email }} + None +
+
Google authentication: +
{{ hero.auth.google }}
+ None +
+
Facebook authentication: +
{{ hero.auth.facebook }}
+ None +
+
Apple ID authentication (not live yet as of March 2020): +
{{ hero.auth.apple }}
+ None +
+
Full "auth" object for checking above is correct: +
{{ hero.auth }}
+
@@ -249,6 +278,9 @@ h3.expand-toggle::after { margin-left: 5px; } + .subsection-start { + margin-top: 1em; + } .form-inline { margin-bottom: 1em; input { @@ -259,6 +291,7 @@