mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 19:23:33 -06:00
add required fields
This commit is contained in:
parent
a19cc4740e
commit
4ef9134025
1 changed files with 5 additions and 5 deletions
|
|
@ -74,14 +74,14 @@ type AccountCreateRequest struct {
|
||||||
// Text that will be reviewed by moderators if registrations require manual approval.
|
// Text that will be reviewed by moderators if registrations require manual approval.
|
||||||
Reason string `form:"reason"`
|
Reason string `form:"reason"`
|
||||||
// The desired username for the account
|
// The desired username for the account
|
||||||
Username string `form:"username"`
|
Username string `form:"username" binding:"required"`
|
||||||
// The email address to be used for login
|
// The email address to be used for login
|
||||||
Email string `form:"email"`
|
Email string `form:"email" binding:"required"`
|
||||||
// The password to be used for login
|
// The password to be used for login
|
||||||
Password string `form:"password"`
|
Password string `form:"password" binding:"required"`
|
||||||
// Whether the user agrees to the local rules, terms, and policies.
|
// Whether the user agrees to the local rules, terms, and policies.
|
||||||
// These should be presented to the user in order to allow them to consent before setting this parameter to TRUE.
|
// These should be presented to the user in order to allow them to consent before setting this parameter to TRUE.
|
||||||
Agreement bool `form:"agreement"`
|
Agreement bool `form:"agreement" binding:"required"`
|
||||||
// The language of the confirmation email that will be sent
|
// The language of the confirmation email that will be sent
|
||||||
Locale string `form:"locale"`
|
Locale string `form:"locale" binding:"required"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue