Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -6,7 +6,7 @@ exports.register = async(ctx) => { | ... | @@ -6,7 +6,7 @@ exports.register = async(ctx) => { |
6 | const { userId, password, passwordCheck } = ctx.request.body; | 6 | const { userId, password, passwordCheck } = ctx.request.body; |
7 | 7 | ||
8 | const schema = Joi.object().keys({ | 8 | const schema = Joi.object().keys({ |
9 | - userId : Joi.string().min(8).max(15).required(), | 9 | + userId : Joi.string().email().max(50).required(), |
10 | password : Joi.string().required(), | 10 | password : Joi.string().required(), |
11 | passwordCheck : Joi.string().required(), | 11 | passwordCheck : Joi.string().required(), |
12 | }) | 12 | }) |
... | @@ -38,7 +38,7 @@ exports.login = async(ctx) => { | ... | @@ -38,7 +38,7 @@ exports.login = async(ctx) => { |
38 | const { userId, password } = ctx.request.body; | 38 | const { userId, password } = ctx.request.body; |
39 | 39 | ||
40 | const schema = Joi.object().keys({ | 40 | const schema = Joi.object().keys({ |
41 | - userId : Joi.string().min(8).max(15).required(), | 41 | + userId : Joi.string().email().max(50).required(), |
42 | password : Joi.string().required() | 42 | password : Joi.string().required() |
43 | }) | 43 | }) |
44 | 44 | ... | ... |
-
Please register or login to post a comment