Add name field to users

This commit is contained in:
kolaente 2020-11-21 21:51:55 +01:00
parent 2b5c9ae7a8
commit d1c65935e6
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
12 changed files with 340 additions and 34 deletions

View file

@ -269,6 +269,7 @@ func registerAPIRoutes(a *echo.Group) {
u.GET("/settings/avatar", apiv1.GetUserAvatarProvider)
u.POST("/settings/avatar", apiv1.ChangeUserAvatarProvider)
u.PUT("/settings/avatar/upload", apiv1.UploadAvatar)
u.POST("/settings/name", apiv1.UpdateUserName)
if config.ServiceEnableTotp.GetBool() {
u.GET("/settings/totp", apiv1.UserTOTP)