From d0e34c57ccbc738bcfa28d35524d43ca47eeeeb4 Mon Sep 17 00:00:00 2001 From: Sternik Date: Fri, 13 Mar 2015 17:01:42 +0100 Subject: [PATCH] Fix for deleting user when gogs instalation is on http://hostname/gogs --- templates/admin/auth/edit.tmpl | 2 +- templates/admin/user/edit.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index e1bbd23d0..70bee6b43 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -12,7 +12,7 @@
{{.i18n.Tr "admin.auths.edit"}}
-
+ {{.CsrfTokenHtml}} {{$type := .Source.Type}} diff --git a/templates/admin/user/edit.tmpl b/templates/admin/user/edit.tmpl index 317349935..bdc0e3343 100644 --- a/templates/admin/user/edit.tmpl +++ b/templates/admin/user/edit.tmpl @@ -12,7 +12,7 @@
{{.i18n.Tr "admin.users.edit_account"}}
- + {{.CsrfTokenHtml}}