diff --git a/server/plugin/plg_authenticate_local/auth.go b/server/plugin/plg_authenticate_local/auth.go index 450c584f..5bb9dee8 100644 --- a/server/plugin/plg_authenticate_local/auth.go +++ b/server/plugin/plg_authenticate_local/auth.go @@ -35,16 +35,13 @@ func (this SimpleAuth) Setup() Form { { Name: "banner", Type: "hidden", - Description: fmt.Sprintf(`Manage your team members and their account permissions by visiting [/admin/simple-user-management](/admin/simple-user-management). -
+ Description: fmt.Sprintf(`MANAGEMENT GUI: /admin/simple-user-management STATS: ┌─────────────┐ ┌──────────────┐ │ TOTAL USERS │ │ ACTIVE USERS │ | %.4d │ | %.4d │ └─────────────┘ └──────────────┘ - -MANAGEMENT GUI: /admin/simple-user-management -EMAIL SERVER : %t +EMAIL SERVER: %t`, nUsers, aUsers, isEmailSetup()), }, { diff --git a/server/plugin/plg_authenticate_local/handler.go b/server/plugin/plg_authenticate_local/handler.go index 23caa375..6921a6c9 100644 --- a/server/plugin/plg_authenticate_local/handler.go +++ b/server/plugin/plg_authenticate_local/handler.go @@ -4,7 +4,6 @@ import ( _ "embed" "html/template" "net/http" - "net/url" . "github.com/mickael-kerjean/filestash/server/common" ) @@ -67,20 +66,15 @@ func UserManagementHandler(ctx *App, res http.ResponseWriter, req *http.Request) } return } - - referer := "" - if u, err := url.Parse(req.Header.Get("referer")); err == nil { - referer = u.Path - } template. Must(template.New("app").Parse(Page(PAGE))). Execute(res, struct { Users []User CurrentUser User - Referer string + BackURL string }{ Users: users, CurrentUser: currentUser, - Referer: referer, + BackURL: WithBase("/admin/backend"), }) } diff --git a/server/plugin/plg_authenticate_local/handler.html b/server/plugin/plg_authenticate_local/handler.html index af93a6ad..dfec6969 100644 --- a/server/plugin/plg_authenticate_local/handler.html +++ b/server/plugin/plg_authenticate_local/handler.html @@ -1,89 +1,91 @@ -