mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-21 07:10:38 +00:00
Add: rename user
This commit is contained in:
1 parent
79a610592e
commit
e9c4156c87
7 files changed
+84
-16
No files matched your search
@@ -291,7 +291,7 @@ func SettingPost(ctx *middleware.Context) {
|
||||
ctx.RenderWithErr("Repository name has been taken in your repositories.", "repo/setting", nil)
|
||||
return
|
||||
} else if err = models.ChangeRepositoryName(ctx.Repo.Owner.Name, ctx.Repo.Repository.Name, newRepoName); err != nil {
|
||||
ctx.Handle(404, "repo.SettingPost(update)", err)
|
||||
ctx.Handle(404, "repo.SettingPost(change repository name)", err)
|
||||
return
|
||||
}
|
||||
log.Trace("%s Repository name changed: %s/%s -> %s", ctx.Req.RequestURI, ctx.User.Name, ctx.Repo.Repository.Name, newRepoName)
|
||||
|
||||
Reference in new issue
Block a user