Bring back refreshUserData when setting user data
User data needs to be refreshed on sign in, otherwise we don't have fresh data regarding isSyncing property and other fields which can change between refreshing page.
This commit is contained in:
parent
2fd1af29ec
commit
a64c800423
|
@ -64,6 +64,7 @@ window.Auth = Ember.Object.extend
|
|||
@set('state', 'signed-in')
|
||||
Travis.trigger('user:signed_in', data.user)
|
||||
@sendToApp('afterSignIn')
|
||||
@refreshUserData(data.user)
|
||||
|
||||
refreshUserData: (user) ->
|
||||
Travis.ajax.get "/users/#{user.id}", (data) =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user