projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2549a73
)
cap again
author
Mark Felder
<feld@FreeBSd.org>
Mon, 19 Mar 2018 18:00:02 +0000
(18:00 +0000)
committer
Mark Felder
<feld@FreeBSd.org>
Mon, 19 Mar 2018 18:00:02 +0000
(18:00 +0000)
lib/pleroma/web/oauth/authorization.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/oauth/authorization.ex
b/lib/pleroma/web/oauth/authorization.ex
index ab2dbf60e40977067bd83d8ab79bfc5ae5e77e00..5a68bd5932a1419d6ae6c1189a79f0c0cf1dec0e 100644
(file)
--- 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, "
t
oken expired"}
+ {:error, "
T
oken expired"}
end
end
def use_token(%Authorization{used: true}), do: {:error, "Already used"}