Skip to content

Commit

Permalink
set profile real name max length to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 29, 2024
1 parent c70a4a5 commit 44bcc3d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/user/src/main/UserForm.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class UserForm:
"flag" -> optional(text.verifying(Flags.codeSet contains _)),
"location" -> optional(cleanNoSymbolsAndNonEmptyText(maxLength = 80)),
"bio" -> optional(cleanNoSymbolsAndNonEmptyText(maxLength = 400)),
"realName" -> nameField,
"realName" -> optional(cleanNoSymbolsText(minLength = 1, maxLength = 100)),
"fideRating" -> optional(number(min = 1400, max = 3000)),
"uscfRating" -> optional(number(min = 100, max = 3000)),
"ecfRating" -> optional(number(min = 0, max = 3000)),
Expand All @@ -57,8 +57,6 @@ final class UserForm:
def flair(using Me) = Form[Option[Flair]]:
single(FlairApi.formPair())

private def nameField = optional(cleanNoSymbolsText(minLength = 1, maxLength = 20))

object UserForm:

val note = Form:
Expand Down

0 comments on commit 44bcc3d

Please sign in to comment.