aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/auth/auth.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core/auth/auth.service.ts')
-rw-r--r--client/src/app/core/auth/auth.service.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts
index 00a4216ef..caf765b42 100644
--- a/client/src/app/core/auth/auth.service.ts
+++ b/client/src/app/core/auth/auth.service.ts
@@ -218,6 +218,7 @@ export class AuthService {
218 const id = obj.id; 218 const id = obj.id;
219 const username = obj.username; 219 const username = obj.username;
220 const role = obj.role; 220 const role = obj.role;
221 const email = obj.email;
221 const displayNSFW = obj.displayNSFW; 222 const displayNSFW = obj.displayNSFW;
222 const hashTokens = { 223 const hashTokens = {
223 access_token: obj.access_token, 224 access_token: obj.access_token,
@@ -225,7 +226,7 @@ export class AuthService {
225 refresh_token: obj.refresh_token 226 refresh_token: obj.refresh_token
226 }; 227 };
227 228
228 this.user = new AuthUser({ id, username, role, displayNSFW }, hashTokens); 229 this.user = new AuthUser({ id, username, role, displayNSFW, email }, hashTokens);
229 this.user.save(); 230 this.user.save();
230 231
231 this.setStatus(AuthStatus.LoggedIn); 232 this.setStatus(AuthStatus.LoggedIn);