diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 10:09:18 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 10:09:18 +0200 |
commit | 33c4972d5b54155540267f4c9c9ee55c539b8385 (patch) | |
tree | c150d11c0afdeb90c19c4d59297c6829b2d55dd1 /client/src/app/core/auth/auth-user.model.ts | |
parent | 4771e0008dd26eadbb7eaff64255a6ec914fdadb (diff) | |
download | PeerTube-33c4972d5b54155540267f4c9c9ee55c539b8385.tar.gz PeerTube-33c4972d5b54155540267f4c9c9ee55c539b8385.tar.zst PeerTube-33c4972d5b54155540267f4c9c9ee55c539b8385.zip |
Type webtorrent
Diffstat (limited to 'client/src/app/core/auth/auth-user.model.ts')
-rw-r--r-- | client/src/app/core/auth/auth-user.model.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/core/auth/auth-user.model.ts b/client/src/app/core/auth/auth-user.model.ts index 9cb201907..4155aea19 100644 --- a/client/src/app/core/auth/auth-user.model.ts +++ b/client/src/app/core/auth/auth-user.model.ts | |||
@@ -96,6 +96,7 @@ export class AuthUser extends User { | |||
96 | localStorage.removeItem(this.KEYS.ID) | 96 | localStorage.removeItem(this.KEYS.ID) |
97 | localStorage.removeItem(this.KEYS.ROLE) | 97 | localStorage.removeItem(this.KEYS.ROLE) |
98 | localStorage.removeItem(this.KEYS.DISPLAY_NSFW) | 98 | localStorage.removeItem(this.KEYS.DISPLAY_NSFW) |
99 | localStorage.removeItem(this.KEYS.EMAIL) | ||
99 | Tokens.flush() | 100 | Tokens.flush() |
100 | } | 101 | } |
101 | 102 | ||
@@ -130,6 +131,7 @@ export class AuthUser extends User { | |||
130 | save () { | 131 | save () { |
131 | localStorage.setItem(AuthUser.KEYS.ID, this.id.toString()) | 132 | localStorage.setItem(AuthUser.KEYS.ID, this.id.toString()) |
132 | localStorage.setItem(AuthUser.KEYS.USERNAME, this.username) | 133 | localStorage.setItem(AuthUser.KEYS.USERNAME, this.username) |
134 | localStorage.setItem(AuthUser.KEYS.EMAIL, this.email) | ||
133 | localStorage.setItem(AuthUser.KEYS.ROLE, this.role) | 135 | localStorage.setItem(AuthUser.KEYS.ROLE, this.role) |
134 | localStorage.setItem(AuthUser.KEYS.DISPLAY_NSFW, JSON.stringify(this.displayNSFW)) | 136 | localStorage.setItem(AuthUser.KEYS.DISPLAY_NSFW, JSON.stringify(this.displayNSFW)) |
135 | this.tokens.save() | 137 | this.tokens.save() |