This project is read-only.


Adding Comments to Post - Email validation


A problem occurs when adding an anonymous comment to a post:
The validation message does not show when an invalid email is entered and submitted with the subscription option unchecked. The validation does show when the subscription option is checked.
Related View: Views/Post/CommentFormAnonymous.ascx
Related Classes: UserBaseValidator, PostService.AddComment(), PostSubscriptionValidator
Workaround / fix:
In CommentFormAnonymous.ascx
Replace: Html.ValidationMessage("PostSubscription.Email", "Valid email required to subscribe.")
With: Html.ValidationMessage("UserBase.Email", "Valid email required to subscribe.")
Judging from the comments in the PostService code, it looks like the team may already be aware of this issue, but hopefully this'll help someone.


skewed wrote Mar 6, 2009 at 4:10 AM

Making poor email regex problem a separate issue.

wrote Mar 6, 2009 at 4:10 AM

skewed wrote Mar 6, 2009 at 4:31 AM

It needs to be able to pick up on both validation messages (invalid email and no email when subscribing). This was fixed up with changeset 29391.

wrote Mar 6, 2009 at 4:31 AM

wrote Feb 21, 2013 at 11:43 PM

wrote May 16, 2013 at 11:38 AM

wrote May 16, 2013 at 11:38 AM

wrote Jun 14, 2013 at 8:23 AM