mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-03 18:23:54 +00:00
Fix test.
This commit is contained in:
parent
ff7afc0465
commit
f9ab38a443
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue