forked from forgejo/forgejo
Add update user profile back end, add new gitignore and license, add template data to public profile page
This commit is contained in:
parent
adedd9181c
commit
57bc2d1ca0
13 changed files with 133 additions and 21 deletions
2
web.go
2
web.go
|
@ -63,7 +63,7 @@ func runWeb(*cli.Context) {
|
|||
m.Any("/user/delete", auth.SignInRequire(true), user.Delete)
|
||||
m.Get("/user/feeds", binding.Bind(auth.FeedsForm{}), user.Feeds)
|
||||
|
||||
m.Any("/user/setting", auth.SignInRequire(true), user.Setting)
|
||||
m.Any("/user/setting", auth.SignInRequire(true), binding.BindIgnErr(auth.UpdateProfileForm{}), user.Setting)
|
||||
m.Any("/user/setting/ssh", auth.SignInRequire(true), binding.BindIgnErr(auth.AddSSHKeyForm{}), user.SettingSSHKeys)
|
||||
|
||||
m.Get("/user/:username", auth.SignInRequire(false), user.Profile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue