Skip to content

Instantly share code, notes, and snippets.

@njwest
Last active February 24, 2018 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njwest/d463124dae3568d2c50ca76c58e66a0f to your computer and use it in GitHub Desktop.
Save njwest/d463124dae3568d2c50ca76c58e66a0f to your computer and use it in GitHub Desktop.
lib/myApi/accounts/accounts.ex
defmodule MyApi.Accounts do
# code omitted for brevity
alias MyApi.Guardian
import Comeonin.Bcrypt, only: [checkpw: 2, dummy_checkpw: 0]
# snip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment