summaryrefslogtreecommitdiffstats
path: root/modules/auth
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-13 02:39:09 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-13 02:39:09 -0400
commit27104ac89a4c489809068ae5c6dbe383ce7fbde2 (patch)
tree2f19eeecc08209285d9aee53c0c224a4fd8967d3 /modules/auth
parent18ba14913746c6c436c4632bdc9174ecfcd59dda (diff)
downloadgitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.tar.gz
gitea-27104ac89a4c489809068ae5c6dbe383ce7fbde2.zip
Add delete repo
Diffstat (limited to 'modules/auth')
-rw-r--r--modules/auth/repo.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/auth/repo.go b/modules/auth/repo.go
index d769664649..5fe091d62f 100644
--- a/modules/auth/repo.go
+++ b/modules/auth/repo.go
@@ -56,6 +56,12 @@ func (f *CreateRepoForm) Validate(errors *binding.Errors, req *http.Request, con
validate(errors, data, f)
}
+type DeleteRepoForm struct {
+ UserId int64 `form:"userId" binding:"Required"`
+ UserName string `form:"userName" binding:"Required"`
+ RepoId int64 `form:"repoId" binding:"Required"`
+}
+
func RepoAssignment(redirect bool) martini.Handler {
return func(params martini.Params, r render.Render, data base.TmplData, session sessions.Session) {
// assign false first