Commits

Dobrosław Żybort committed 7b6cdcd

Don't allow empty password when registering

Comments (0)

Files changed (1)

 		return registerForm(wri, req, ctx)
 	}
 
+	if userData.Password == "" {
+		ctx.Session.AddFlash("Password can't be empty")
+		return registerForm(wri, req, ctx)
+	}
+
 	user := &User{
 		Name: userData.Name,
 	}