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 ="email": params[:email], "password": params[:password])
render json: {"logged":1, "id":, "token": current_user.single_access_token}
render json: {"logged":1, "id":, "token": current_user.single_access_token, "name": }
render json: {"logged":0}
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