diff --git a/templates/home.tmpl b/templates/home.tmpl index b7e0f31..e16e4f7 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -12,6 +12,60 @@

Welcome, {{.Name}}!

+ {{if .User}} + {{if .User.IsAdmin}} +
+

+ 🛈 To query + the breach APIs, you need to create a user-level + account. To use it, log into it in another browser + (not just another browser window, as normally that + would share the session details of this user). User and + administrator-level accounts each have distinct + capabilities. Similarly to how it is only possible to + manage users using the administrator-level account, + browsing breach data is only allowed for user-level + accounts + + 🛈 learn more about this project. +

+

+ 🛈 Add a new user + + from here, or + + view a listing of all existing users. +

+

+ 🛈 You can also view the configured API keys + + here. +

+
+ {{else}} +
+

+ 🛈 + Check whether your email account is a part of a breach + + here. +

+

+ 🛈 + Alternatively, + + learn more about this project. +

+
+ {{end}} + {{end}}