mirror of
https://gitee.com/gitea/gitea.git
synced 2024-12-16 15:41:11 +08:00
Add code of delete user
This commit is contained in:
parent
4b92a6c2df
commit
d87ea87aee
@ -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),
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user