From d87ea87aee883b073ff198902c0439a19ff707e5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 19 Feb 2014 13:13:02 -0500 Subject: Add code of delete user --- routers/user/user.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'routers') diff --git a/routers/user/user.go b/routers/user/user.go index 24c22a4f44..3566601200 100644 --- a/routers/user/user.go +++ b/routers/user/user.go @@ -51,3 +51,11 @@ func SignUp(req *http.Request, r render.Render) { "Title": fmt.Sprintf("%v", err), }) } + +func Delete(r render.Render) { + u := &models.User{} + err := models.DeleteUser(u) + r.HTML(403, "status/403", map[string]interface{}{ + "Title": fmt.Sprintf("%v", err), + }) +} -- cgit v1.2.3