Change models, new migrations, fix front and make tests work
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
7
lib/eventos_web/views/user_session_view.ex
Normal file
7
lib/eventos_web/views/user_session_view.ex
Normal file
@@ -0,0 +1,7 @@
|
||||
defmodule EventosWeb.UserSessionView do
|
||||
use EventosWeb, :view
|
||||
|
||||
def render("token.json", %{token: token, user: user}) do
|
||||
%{token: token, user: render_one(user, EventosWeb.UserView, "user_simple.json")}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user