diff options
Diffstat (limited to 'server/models/account')
-rw-r--r-- | server/models/account/user.ts | 7 |
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 | }) |
222 | export class UserModel extends Model<UserModel> { | 222 | export 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 | ||