Add login information to user

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-08-28 09:23:49 +02:00
parent 37d5b9ea45
commit 45fa3e8ad0
5 changed files with 69 additions and 15 deletions

View File

@@ -44,8 +44,6 @@ defmodule Mobilizon.Web.Auth.Guardian do
end
def after_encode_and_sign(resource, claims, token, _options) do
Logger.debug(fn -> "after_encode_and_sign #{inspect(claims)}" end)
with {:ok, _} <- Guardian.DB.after_encode_and_sign(resource, claims["typ"], claims, token) do
{:ok, token}
end