   defp crypto_mod(mod) do
     mod.config(:crypto_mod, Comeonin.Bcrypt)
   end
+
+  # TODO: Adjust authenticate_user so it can also work with a `username`
+  # defp user_identifier_field do
+  #   mod.config(:user_identifier_field, :email)
+  # end
 end


      def authenticate_user(params),
        do: Curator.DatabaseAuthenticatable.authenticate_user(__MODULE__, params)

      def create_changeset(user, attrs),
        do: Curator.DatabaseAuthenticatable.create_changeset(__MODULE__, user, attrs)


  # User Schema / Context

  def create_changeset(mod, user, attrs) do
    user
    |> cast(attrs, [:password])
