Skip to content

Instantly share code, notes, and snippets.

@carlyleec
Last active February 19, 2021 05:15
Show Gist options
  • Save carlyleec/25ce6d1b6c388fc110719ba2f18ed6cf to your computer and use it in GitHub Desktop.
Save carlyleec/25ce6d1b6c388fc110719ba2f18ed6cf to your computer and use it in GitHub Desktop.
def register_user(attrs) do
%User{}
|> User.registration_changeset(attrs)
|> Repo.insert()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment