diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 11:29:03 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 11:36:05 +0200 |
commit | 66dd264f7b15c05006faa00694c88c56794edc54 (patch) | |
tree | 7545d2f52b8019c128897c120dab7bcbafb586cd /client/src/app/core/auth/auth.service.ts | |
parent | 69f616ab3aeefd6ce330600604df90f2f48bfe3b (diff) | |
download | PeerTube-66dd264f7b15c05006faa00694c88c56794edc54.tar.gz PeerTube-66dd264f7b15c05006faa00694c88c56794edc54.tar.zst PeerTube-66dd264f7b15c05006faa00694c88c56794edc54.zip |
Better build/dev scripts
Diffstat (limited to 'client/src/app/core/auth/auth.service.ts')
-rw-r--r-- | client/src/app/core/auth/auth.service.ts | 3 |
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); |