Require password when creating user (#74)

This commit is contained in:
Ethan Koenig 2017-10-01 22:08:12 -07:00 committed by Lauris BH
parent 60c60488f2
commit fc9011e1a1
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ type CreateUserOption struct {
// in: body
Email string `json:"email" binding:"Required;Email;MaxSize(254)"`
// in: body
Password string `json:"password" binding:"MaxSize(255)"`
Password string `json:"password" binding:"Required;MaxSize(255)"`
// in: body
SendNotify bool `json:"send_notify"`
}