Chore: Include avatar url in sign_in response (#501)
- include avatar url in sign_in response ( fixes #500 ) - fix circle ci builds
This commit is contained in:
@@ -2,4 +2,8 @@ class DeviseOverrides::SessionsController < ::DeviseTokenAuth::SessionsControlle
|
||||
# Prevent session parameter from being passed
|
||||
# Unpermitted parameter: session
|
||||
wrap_parameters format: []
|
||||
|
||||
def render_create_success
|
||||
render 'devise/auth.json'
|
||||
end
|
||||
end
|
||||
|
||||
14
app/views/devise/auth.json.jbuilder
Normal file
14
app/views/devise/auth.json.jbuilder
Normal file
@@ -0,0 +1,14 @@
|
||||
json.data do
|
||||
json.id @resource.id
|
||||
json.provider @resource.provider
|
||||
json.uid @resource.uid
|
||||
json.name @resource.name
|
||||
json.nickname @resource.nickname
|
||||
json.email @resource.email
|
||||
json.account_id @resource.account_id
|
||||
json.pubsub_token @resource.pubsub_token
|
||||
json.role @resource.role
|
||||
json.inviter_id @resource.inviter_id
|
||||
json.confirmed @resource.confirmed?
|
||||
json.avatar_url @resource.avatar_url
|
||||
end
|
||||
Reference in New Issue
Block a user