Commit 75d26cad authored by Julien Schröter's avatar Julien Schröter

Require user to submit valid email address on signup

parent 13957845
......@@ -3,7 +3,7 @@ package user
type SignUpRequest struct {
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`
Email string `json:"email" binding:"required"`
Email string `json:"email" binding:"required,email"`
University string `json:"university" binding:"required"`
Semester uint32 `json:"semester" binding:"required"`
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment