Skip to content
Snippets Groups Projects
Commit e0aafffe authored by Jure's avatar Jure
Browse files

fix(model-user): change passwordResetTimestamp schema

parent 600be3a6
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,10 @@ class User extends BaseModel { ...@@ -33,7 +33,10 @@ class User extends BaseModel {
username: { type: 'string', pattern: '^[a-zA-Z0-9]+' }, username: { type: 'string', pattern: '^[a-zA-Z0-9]+' },
passwordHash: { type: 'string' }, passwordHash: { type: 'string' },
passwordResetToken: { type: ['string', 'null'] }, passwordResetToken: { type: ['string', 'null'] },
passwordResetTimestamp: { type: ['integer', 'null'] }, passwordResetTimestamp: {
type: ['string', 'object'],
format: 'date-time',
},
created: { type: ['string', 'object'], format: 'date-time' }, created: { type: ['string', 'object'], format: 'date-time' },
fragments: { fragments: {
type: 'array', type: 'array',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment