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:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f44c15192c63d3dc17d8caaa8996e2044f017295
f44c1519
1 parent
8be7ce15
fix. deviceToken : nullable
Show 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 @
f44c151
...
...
@@ -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
);
...
...
@@ -219,7 +219,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