aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/account
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-04-22 16:07:04 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-05-04 16:21:39 +0200
commit7fed637506043e4432cbebe041ada0625171cceb (patch)
tree07f174e17c4b4a0b3d43a0fa6944865c06234338 /server/models/account
parent8d4197637868d5cde49434e937186b57e40f4b2b (diff)
downloadPeerTube-7fed637506043e4432cbebe041ada0625171cceb.tar.gz
PeerTube-7fed637506043e4432cbebe041ada0625171cceb.tar.zst
PeerTube-7fed637506043e4432cbebe041ada0625171cceb.zip
Begin auth plugin support
Diffstat (limited to 'server/models/account')
-rw-r--r--server/models/account/user.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index da40bf290..d0d9a0508 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -221,7 +221,7 @@ enum ScopeNames {
221}) 221})
222export class UserModel extends Model<UserModel> { 222export class UserModel extends Model<UserModel> {
223 223
224 @AllowNull(false) 224 @AllowNull(true)
225 @Is('UserPassword', value => throwIfNotValid(value, isUserPasswordValid, 'user password')) 225 @Is('UserPassword', value => throwIfNotValid(value, isUserPasswordValid, 'user password'))
226 @Column 226 @Column
227 password: string 227 password: string
@@ -348,6 +348,11 @@ export class UserModel extends Model<UserModel> {
348 @Column 348 @Column
349 noWelcomeModal: boolean 349 noWelcomeModal: boolean
350 350
351 @AllowNull(true)
352 @Default(null)
353 @Column
354 pluginAuth: string
355
351 @CreatedAt 356 @CreatedAt
352 createdAt: Date 357 createdAt: Date
353 358