Skip to content

Commit

Permalink
Trim username
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Jan 23, 2024
1 parent 54d7088 commit acdc0f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/orcasite/accounts/user.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Orcasite.Accounts.User do

attribute :username, :string do
allow_nil? false
constraints allow_empty?: false
constraints allow_empty?: false, trim?: true
end

create_timestamp :inserted_at
Expand Down

0 comments on commit acdc0f2

Please sign in to comment.