Skip to content

Commit

Permalink
fix: email is case sensitive #318 (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
alyxbb authored Aug 30, 2024
1 parent a83a9c6 commit f7f457d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/signup.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (gic *SignUpController) Post(w http.ResponseWriter, r *http.Request) {
} else {
// Ignore an added @york.ac.uk (since we assume it)
eduroam = strings.TrimSuffix(eduroam, "@york.ac.uk")
match, _ := regexp.MatchString("^[a-z]{1,6}[0-9]{1,6}$", eduroam)
match, _ := regexp.MatchString("^([a-z]|[A-Z]){1,6}[0-9]{1,6}$", eduroam)
if !match {
feedback = append(feedback, "The @york.ac.uk email you provided seems invalid")
}
Expand Down

0 comments on commit f7f457d

Please sign in to comment.