1
0

Add name field to users

This commit is contained in:
kolaente
2020-11-21 21:51:55 +01:00
parent 2b5c9ae7a8
commit d1c65935e6
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)