From 110eb0b1990d5d5ee77f9368a9b7653cfdc07131 Mon Sep 17 00:00:00 2001 From: Simponic Date: Mon, 19 Dec 2022 20:45:01 -0700 Subject: Implement public key and add tests --- lib/chessh/schema/player.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chessh/schema/player.ex') diff --git a/lib/chessh/schema/player.ex b/lib/chessh/schema/player.ex index d04ed3e..5b7b904 100644 --- a/lib/chessh/schema/player.ex +++ b/lib/chessh/schema/player.ex @@ -49,7 +49,7 @@ defmodule Chessh.Player do defp validate_username(changeset) do changeset |> validate_required([:username]) - |> validate_length(:username, min: 2, max: 12) + |> validate_length(:username, min: 2, max: 16) |> validate_format(:username, ~r/^[a-zA-Z0-9_\-]*$/, message: "only letters, numbers, underscores, and hyphens allowed" ) -- cgit v1.2.3-70-g09d2