Skip to content
Snippets Groups Projects
Commit cf5d1bf2 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

refactor(validations): allow username to be string instead of alphanumeric

parent ca5f3e5b
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,7 @@ module.exports = { ...@@ -87,6 +87,7 @@ module.exports = {
], ],
user: { user: {
name: Joi.string(), name: Joi.string(),
username: Joi.string(),
roles: Joi.array(), roles: Joi.array(),
isConfirmed: Joi.boolean(), isConfirmed: Joi.boolean(),
firstName: Joi.string().allow(''), firstName: Joi.string().allow(''),
......
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