Commit eea2a7da authored by steven robert's avatar steven robert

ajout du name dans login json

parent 045a5928
......@@ -32,7 +32,7 @@ class UserSessionsController < ApplicationController
@user_session = UserSession.new("email": params[:email], "password": params[:password])
if @user_session.save
render json: {"logged":1, "id": current_user.id, "token": current_user.single_access_token}
render json: {"logged":1, "id": current_user.id, "token": current_user.single_access_token, "name": current_user.name }
else
render json: {"logged":0}
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment