Fix empty password error when trying to change the username (#418)

This commit is contained in:
Thomas Miceli
2025-01-27 00:57:46 +01:00
committed by GitHub
parent 28c7e75657
commit d363743203
2 changed files with 5 additions and 2 deletions

View File

@ -247,3 +247,7 @@ func (dto *UserDTO) ToUser() *User {
Password: dto.Password,
}
}
type UserUsernameDTO struct {
Username string `form:"username" validate:"required,max=24,alphanumdash,notreserved"`
}