Fix test.
authorlain <lain@soykaf.club>
Thu, 22 Mar 2018 11:37:24 +0000 (12:37 +0100)
committerlain <lain@soykaf.club>
Thu, 22 Mar 2018 11:37:24 +0000 (12:37 +0100)
lib/pleroma/web/oauth/authorization.ex

index 5a68bd5932a1419d6ae6c1189a79f0c0cf1dec0e..1ba5be60261844c3ff169e1ba423cc412c3849be 100644 (file)
@@ -40,8 +40,8 @@ defmodule Pleroma.Web.OAuth.Authorization do
     if NaiveDateTime.diff(NaiveDateTime.utc_now, valid_until) < 0 do
       Repo.update(use_changeset(auth, %{used: true}))
     else
-      {:error, "Token expired"}
+      {:error, "token expired"}
     end
   end
-  def use_token(%Authorization{used: true}), do: {:error, "Already used"}
+  def use_token(%Authorization{used: true}), do: {:error, "already used"}
 end