Skip to content

Commit 9266c7d

Browse files
committed
remove references to the session id from the front-end
1 parent 784f15a commit 9266c7d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

generated/browser/js/fsa/fsa-pre-built.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
app.service('AuthService', function ($http, Session, $rootScope, AUTH_EVENTS, $q) {
5252

5353
function onSuccessfulLogin(response) {
54-
var data = response.data;
55-
Session.create(data.id, data.user);
54+
var user = response.data.user;
55+
Session.create(user);
5656
$rootScope.$broadcast(AUTH_EVENTS.loginSuccess);
57-
return data.user;
57+
return user;
5858
}
5959

6060
// Uses the session factory to see if an
@@ -115,16 +115,13 @@
115115
self.destroy();
116116
});
117117

118-
this.id = null;
119118
this.user = null;
120119

121120
this.create = function (sessionId, user) {
122-
this.id = sessionId;
123121
this.user = user;
124122
};
125123

126124
this.destroy = function () {
127-
this.id = null;
128125
this.user = null;
129126
};
130127

0 commit comments

Comments
 (0)