Skip to content

Commit

Permalink
Merge branch 'ntrlab' of https://github.com/amida-tech/greyscale into…
Browse files Browse the repository at this point in the history
… ntrlab
  • Loading branch information
sbabushkin committed Mar 25, 2016
2 parents e65a759 + e92cf10 commit 086927a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/app/greyscale.rest/scripts/services/greyscale-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
'use strict';

angular.module('greyscale.rest')
.factory('greyscaleUserApi', function ($q, greyscaleRestSrv, Restangular, greyscaleTokenSrv, greyscaleBase64Srv, $log) {
.factory('greyscaleUserApi', function ($q, greyscaleRestSrv, Restangular, greyscaleTokenSrv, greyscaleBase64Srv,
greyscaleRealmSrv) {

return {
login: _login,
Expand Down Expand Up @@ -81,6 +82,7 @@ angular.module('greyscale.rest')
.one('users', 'token').get()
.then(function (resp) {
greyscaleTokenSrv(resp.token);
greyscaleRealmSrv(resp.realm);
return resp;
});
}
Expand Down

0 comments on commit 086927a

Please sign in to comment.