Skip to content

Instantly share code, notes, and snippets.

@njwest
Last active July 20, 2024 20:34
Show Gist options
  • Save njwest/04c9e39fbb08cf1b3d28c21f831a9323 to your computer and use it in GitHub Desktop.
Save njwest/04c9e39fbb08cf1b3d28c21f831a9323 to your computer and use it in GitHub Desktop.
@SPEC example
@spec allow_login_attempt?(String.t(), non_neg_integer()) :: boolean()
def allow_login_attempt?(email, limit \\ @login_request_limit) do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment