signalpoint / angular-drupal

An Angular JS module for Drupal.
GNU General Public License v2.0
116 stars 33 forks source link

After successful login, remove call for new token, because token is now returned with login result #15

Open signalpoint opened 9 years ago

signalpoint commented 9 years ago

The Services module now includes the new token in the result of a login call, so we don't need to manually grab the token after logging in any more.

OpenEyeNet commented 8 years ago

Any updates on this? I am returning result.data in user_login but not 100% this is what I want to do.

signalpoint commented 7 years ago

@OpenEyeNet I have not made any progress on this. I think we could set the token here: https://github.com/easystreet3/angular-drupal/blob/7.x-1.x/src/angular-drupal.js#L99

And then the subsequent System Connect call will probably use that new token, instead of retrieving a new one.