Add name field to users
This commit is contained in:
parent
2b5c9ae7a8
commit
d1c65935e6
12 changed files with 340 additions and 34 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Reference in a new issue