public override List <string> GetFieldErrors(ServerClasses.Auth.FieldAuthenticationSuite s) { List <string> errors = new List <string>(); if (!s.ValidateTitleLength(this.title)) { errors.Add(s.TitleFieldTooLongMessage("Title", this.title.Length)); } if (!s.ValidateTitleLength(this.heading_one)) { errors.Add(s.TitleFieldTooLongMessage("Left Heading", this.heading_one.Length)); } if (!s.ValidateTitleLength(this.heading_two)) { errors.Add(s.TitleFieldTooLongMessage("Right Heading", this.heading_two.Length)); } if (!s.ValidateParagraphContentLength(this.content_one)) { errors.Add(s.ContentFieldTooLongMessage("Left Content Field", this.content_one.Length)); } if (!s.ValidateParagraphContentLength(this.content_two)) { errors.Add(s.ContentFieldTooLongMessage("Right Content Field", this.content_two.Length)); } return(errors); }
public override List <string> GetFieldErrors(ServerClasses.Auth.FieldAuthenticationSuite s) { List <string> errors = new List <string>(); if (!s.ValidateTitleLength(this.title)) { errors.Add(s.TitleFieldTooLongMessage("Title", this.title.Length)); } if (!s.ValidateTitleLength(this.link_display)) { errors.Add(s.TitleFieldTooLongMessage("Link Display Text", this.link_display.Length)); } if (!s.ValidateParagraphContentLength(this.url)) { errors.Add(s.ContentFieldTooLongMessage("Link URL", this.url.Length)); } if (!s.ValidateParagraphContentLength(this.content)) { errors.Add(s.ContentFieldTooLongMessage("Link Box Content", this.content.Length)); } return(errors); }
public override List <string> GetFieldErrors(ServerClasses.Auth.FieldAuthenticationSuite s) { List <string> errors = new List <string>(); if (!s.ValidateTitleLength(this.title)) { errors.Add(s.TitleFieldTooLongMessage("Title", this.title.Length)); } if (!s.ValidateImageBase64Length(this.image_src)) { errors.Add(s.ImageBase64FileTooLargeMessage("Portrait Image", this.image_src.Length)); } if (!s.ValidateImageBase64FileType(this.image_src)) { errors.Add(s.ImageInvalidFileTypeMessage("Portrait Image")); } if (!s.ValidateParagraphContentLength(this.content)) { errors.Add(s.ContentFieldTooLongMessage("Portrait Content", this.content.Length)); } return(errors); }