aboutsummaryrefslogtreecommitdiff
path: root/routers/user/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/user.go')
-rw-r--r--routers/user/user.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/routers/user/user.go b/routers/user/user.go
index 24c22a4f..35666012 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),
+ })
+}