mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-29 03:53:55 +00:00
cap again
This commit is contained in:
parent
2549a73d6d
commit
2702df489f
|
@ -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"}
|
||||
|
|
Loading…
Reference in a new issue