Commit e0edc594 authored by Julien Schröter's avatar Julien Schröter

Cancel signup if email domain is not valid

parent db68d67e
Pipeline #2220 passed with stage
in 3 minutes and 43 seconds
......@@ -79,6 +79,7 @@ func RegisterUser(repository UserQuery, tokenFactory otp.TokenFactory, verifyEma
if err := validateEmailDomain(signUpForm.Email); err != nil {
ctx.String(http.StatusBadRequest, fmt.Sprintf("domain of email address violates rules: %v", err))
//creates an empty user struct
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