Commit 98ff620c authored by Emma's avatar Emma 😻

better error when submitting an invalid forum name

parent 4be32a6d
......@@ -31,7 +31,7 @@ class Forum {
*
* @Assert\NotBlank()
* @Assert\Length(min=3, max=25)
* @Assert\Regex("/^\w+$/")
* @Assert\Regex("/^\w+$/", message="The name must contain only contain letters, numbers, and underscores.")
*
* @var string
*/
......
'The comment must not be empty.': 'The comment must not be empty.'
'The name must contain only contain letters, numbers, and underscores.': 'The name must contain only contain letters, numbers, and underscores.'
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