Archived
2

added authorization

This commit is contained in:
VLE2FE
2020-04-23 13:59:45 +02:00
parent 90d34f1e1b
commit 1a3fdc567d
21 changed files with 393 additions and 47 deletions

View File

@ -1,5 +1,5 @@
import joi from '@hapi/joi';
import globals from "../../globals";
import globals from '../../globals';
export default class UserValidate { // validate input for user
static input (data) {
@ -27,6 +27,7 @@ export default class UserValidate { // validate input for user
.required(),
device_name: joi.string()
.allow('')
.required()
}).validate(data);
}