Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-10-17 16:38:58 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
ac0d944e493a8a1d9ddde7dce134b2863a97b5dc
ac0d944e
2 parents
120d2409
f44c1519
Merge branch 'server' into web
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
server/src/api/auth/auth.ctrl.js
server/src/api/auth/auth.ctrl.js
View file @
ac0d944
...
...
@@ -29,7 +29,7 @@ exports.register = async(ctx) => {
userNm
:
Joi
.
string
().
required
(),
birth
:
Joi
.
string
().
required
(),
contact
:
Joi
.
string
().
required
(),
deviceToken
:
Joi
.
string
(),
deviceToken
:
Joi
.
string
()
.
allow
(
null
)
,
});
const
result
=
schema
.
validate
(
ctx
.
request
.
body
);
...
...
@@ -218,7 +218,7 @@ exports.login = async(ctx) => {
const
schema
=
Joi
.
object
().
keys
({
userId
:
Joi
.
string
().
email
().
max
(
50
).
required
(),
password
:
Joi
.
string
().
required
(),
deviceToken
:
Joi
.
string
(),
deviceToken
:
Joi
.
string
()
.
allow
(
null
)
,
});
const
result
=
schema
.
validate
(
ctx
.
request
.
body
);
...
...
Please
register
or
login
to post a comment