mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 01:11:23 +03:00
Add username to user
This commit is contained in:
@@ -29,6 +29,14 @@ module.exports = {
|
||||
type: 'string',
|
||||
required: true,
|
||||
},
|
||||
username: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
minLength: 3,
|
||||
maxLength: 16,
|
||||
regex: /^[a-zA-Z0-9]+(_?[a-zA-Z0-9])*$/,
|
||||
allowNull: true,
|
||||
},
|
||||
avatar: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
|
||||
Reference in New Issue
Block a user