cap again
authorMark Felder <feld@FreeBSd.org>
Mon, 19 Mar 2018 18:00:02 +0000 (18:00 +0000)
committerMark Felder <feld@FreeBSd.org>
Mon, 19 Mar 2018 18:00:02 +0000 (18:00 +0000)
lib/pleroma/web/oauth/authorization.ex

index ab2dbf60e40977067bd83d8ab79bfc5ae5e77e00..5a68bd5932a1419d6ae6c1189a79f0c0cf1dec0e 100644 (file)
@@ -40,7 +40,7 @@ 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"}