Skip to content

Instantly share code, notes, and snippets.

@UnisonPublic
Created January 18, 2012 12:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save UnisonPublic/1632748 to your computer and use it in GitHub Desktop.
-record(account_types, {
id = {integer, [
{private, true}
]},
name = {binary_string, [
{max_length, 160},
{min_length, 1}
]},
password = {binary_string, [
{description, "Password"},
{min_length, 6}
]}
}).
%% @doc
%% Creates new account by invitation.
%% {struct, [
%% {<<"id">>, #account_types.id},
%% {<<"name">>, #account_types.name},
%% {<<"password">>,#account_types.password}
%% ]}
%% @see request_invite/0
%% @see check_invite_key/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment