diff options
Diffstat (limited to 'modules/structs')
-rw-r--r-- | modules/structs/user.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/structs/user.go b/modules/structs/user.go index c5e96f3356..f68b92ac06 100644 --- a/modules/structs/user.go +++ b/modules/structs/user.go @@ -93,3 +93,12 @@ type UserSettingsOptions struct { HideEmail *bool `json:"hide_email"` HideActivity *bool `json:"hide_activity"` } + +// RenameUserOption options when renaming a user +type RenameUserOption struct { + // New username for this user. This name cannot be in use yet by any other user. + // + // required: true + // unique: true + NewName string `json:"new_username" binding:"Required"` +} |