diff --git a/lib/clip/accounts/user.ex b/lib/clip/accounts/user.ex
index c614e94..77bf32a 100644
--- a/lib/clip/accounts/user.ex
+++ b/lib/clip/accounts/user.ex
@@ -39,10 +39,10 @@ defmodule Clip.Accounts.User do
defp validate_password(changeset) do
changeset
|> validate_required([:password])
- |> validate_length(:password, min: 12, max: 80)
- # |> validate_format(:password, ~r/[a-z]/, message: "at least one lower case character")
- # |> validate_format(:password, ~r/[A-Z]/, message: "at least one upper case character")
- # |> validate_format(:password, ~r/[!?@#$%^&*_0-9]/, message: "at least one digit or punctuation character")
+ |> validate_length(:password, min: 8, max: 80)
+ |> validate_format(:password, ~r/[a-z]/, message: "at least one lower case character")
+ |> validate_format(:password, ~r/[A-Z]/, message: "at least one upper case character")
+ |> validate_format(:password, ~r/[-..:;!?@#$%^&*_0-9]/, message: "at least one digit or punctuation character (one of . . : ; ! ? @ # $ % ^ & * _ -)")
|> prepare_changes(&hash_password/1)
end
diff --git a/lib/clip_web/live/board_live.ex b/lib/clip_web/live/board_live.ex
index f0c425d..0eb43da 100644
--- a/lib/clip_web/live/board_live.ex
+++ b/lib/clip_web/live/board_live.ex
@@ -1,21 +1,24 @@
defmodule ClipWeb.BoardLive do
use ClipWeb, :live_view
+ alias Clip.Accounts
+
@impl true
def render(assigns) do
~L"""
- Current content: <%= @snippet %>
-