Skip to content

Commit

Permalink
add validation folder that contains login schema
Browse files Browse the repository at this point in the history
Relates #38
  • Loading branch information
alaa-yasin committed Oct 1, 2019
1 parent a777451 commit a91659b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/src/validation/login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Joi from '@hapi/joi';

const logInSchema = Joi.object().keys({
tableNumber: Joi.number()
.required()
.label('Table Number'),
secret: Joi.string().required(),
});

export default logInSchema;

0 comments on commit a91659b

Please sign in to comment.