diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-25 17:31:11 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 09:11:38 +0200 |
commit | bcd9f81eff05ffd930c5d8175fb907d4d371432a (patch) | |
tree | 071c9bff7135ae968f329623b77a4835e1afcb59 /client/src/app/core/auth/auth-user.model.ts | |
parent | d412e80e5f748f92118541a5334c14ebd4a90881 (diff) | |
download | PeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.tar.gz PeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.tar.zst PeerTube-bcd9f81eff05ffd930c5d8175fb907d4d371432a.zip |
Add channels to upload form
Diffstat (limited to 'client/src/app/core/auth/auth-user.model.ts')
-rw-r--r-- | client/src/app/core/auth/auth-user.model.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/client/src/app/core/auth/auth-user.model.ts b/client/src/app/core/auth/auth-user.model.ts index 4155aea19..81bff99a0 100644 --- a/client/src/app/core/auth/auth-user.model.ts +++ b/client/src/app/core/auth/auth-user.model.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | // Do not use the barrel (dependency loop) | 1 | // Do not use the barrel (dependency loop) |
2 | import { UserRole } from '../../../../../shared/models/users/user-role.type' | 2 | import { UserRole } from '../../../../../shared/models/users/user-role.type' |
3 | import { User } from '../../shared/users/user.model' | 3 | import { User, UserConstructorHash } from '../../shared/users/user.model' |
4 | 4 | ||
5 | export type TokenOptions = { | 5 | export type TokenOptions = { |
6 | accessToken: string | 6 | accessToken: string |
@@ -100,13 +100,7 @@ export class AuthUser extends User { | |||
100 | Tokens.flush() | 100 | Tokens.flush() |
101 | } | 101 | } |
102 | 102 | ||
103 | constructor (userHash: { | 103 | constructor (userHash: UserConstructorHash, hashTokens: TokenOptions) { |
104 | id: number, | ||
105 | username: string, | ||
106 | role: UserRole, | ||
107 | email: string, | ||
108 | displayNSFW: boolean | ||
109 | }, hashTokens: TokenOptions) { | ||
110 | super(userHash) | 104 | super(userHash) |
111 | this.tokens = new Tokens(hashTokens) | 105 | this.tokens = new Tokens(hashTokens) |
112 | } | 106 | } |