From 2702df489fb7bbc2dbb0012f5b7eb8c3278faebe Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 19 Mar 2018 18:00:02 +0000 Subject: [PATCH] cap again --- lib/pleroma/web/oauth/authorization.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/web/oauth/authorization.ex b/lib/pleroma/web/oauth/authorization.ex index ab2dbf60e..5a68bd593 100644 --- a/lib/pleroma/web/oauth/authorization.ex +++ b/lib/pleroma/web/oauth/authorization.ex @@ -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"} -- 2.45.2