Showing
1 changed file
with
5 additions
and
3 deletions
... | @@ -27,6 +27,7 @@ exports.register = async(ctx) => { | ... | @@ -27,6 +27,7 @@ exports.register = async(ctx) => { |
27 | userNm : Joi.string().required(), | 27 | userNm : Joi.string().required(), |
28 | birth : Joi.string().required(), | 28 | birth : Joi.string().required(), |
29 | contact : Joi.string().required(), | 29 | contact : Joi.string().required(), |
30 | + deviceToken : Joi.string(), | ||
30 | }); | 31 | }); |
31 | 32 | ||
32 | const result = schema.validate(ctx.request.body); | 33 | const result = schema.validate(ctx.request.body); |
... | @@ -200,8 +201,9 @@ exports.login = async(ctx) => { | ... | @@ -200,8 +201,9 @@ exports.login = async(ctx) => { |
200 | 201 | ||
201 | const schema = Joi.object().keys({ | 202 | const schema = Joi.object().keys({ |
202 | userId : Joi.string().email().max(50).required(), | 203 | userId : Joi.string().email().max(50).required(), |
203 | - password : Joi.string().required() | 204 | + password : Joi.string().required(), |
204 | - }) | 205 | + deviceToken : Joi.string(), |
206 | + }); | ||
205 | 207 | ||
206 | const result = schema.validate(ctx.request.body); | 208 | const result = schema.validate(ctx.request.body); |
207 | if(result.error) { | 209 | if(result.error) { |
... | @@ -333,7 +335,7 @@ exports.socialRegister = async ctx => { | ... | @@ -333,7 +335,7 @@ exports.socialRegister = async ctx => { |
333 | 335 | ||
334 | const user = new User({ | 336 | const user = new User({ |
335 | userId, | 337 | userId, |
336 | - hashedPassword : null, | 338 | + hashedPassword : 'unnecessary', |
337 | authTypeCd : socialType.toUpperCase(), | 339 | authTypeCd : socialType.toUpperCase(), |
338 | useYn : 'Y', | 340 | useYn : 'Y', |
339 | }); | 341 | }); | ... | ... |
-
Please register or login to post a comment