summaryrefslogtreecommitdiffstats
path: root/routers/admin/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r--routers/admin/users.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go
index b7056957e9..eb91ea2fdf 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -120,7 +120,7 @@ func NewUserPost(ctx *context.Context, form auth.AdminCrateUserForm) {
}
ctx.Flash.Success(ctx.Tr("admin.users.new_success", u.Name))
- ctx.Redirect(setting.AppSubUrl + "/admin/users/" + com.ToStr(u.Id))
+ ctx.Redirect(setting.AppSubUrl + "/admin/users/" + com.ToStr(u.ID))
}
func prepareUserInfo(ctx *context.Context) *models.User {