projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff7afc0
)
Fix test.
author
lain
<lain@soykaf.club>
Thu, 22 Mar 2018 11:37:24 +0000
(12:37 +0100)
committer
lain
<lain@soykaf.club>
Thu, 22 Mar 2018 11:37:24 +0000
(12:37 +0100)
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 5a68bd5932a1419d6ae6c1189a79f0c0cf1dec0e..1ba5be60261844c3ff169e1ba423cc412c3849be 100644
(file)
--- a/
lib/pleroma/web/oauth/authorization.ex
+++ b/
lib/pleroma/web/oauth/authorization.ex
@@
-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, "
T
oken expired"}
+ {:error, "
t
oken expired"}
end
end
- def use_token(%Authorization{used: true}), do: {:error, "
A
lready used"}
+ def use_token(%Authorization{used: true}), do: {:error, "
a
lready used"}
end