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-05-16 15:25:07 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
09f021ae714cfc94dbc491d82a16677a6222f159
09f021ae
1 parent
1f7335f7
feat. id is email
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 @
09f021a
...
...
@@ -6,7 +6,7 @@ exports.register = async(ctx) => {
const
{
userId
,
password
,
passwordCheck
}
=
ctx
.
request
.
body
;
const
schema
=
Joi
.
object
().
keys
({
userId
:
Joi
.
string
().
min
(
8
).
max
(
15
).
required
(),
userId
:
Joi
.
string
().
email
().
max
(
50
).
required
(),
password
:
Joi
.
string
().
required
(),
passwordCheck
:
Joi
.
string
().
required
(),
})
...
...
@@ -38,7 +38,7 @@ exports.login = async(ctx) => {
const
{
userId
,
password
}
=
ctx
.
request
.
body
;
const
schema
=
Joi
.
object
().
keys
({
userId
:
Joi
.
string
().
min
(
8
).
max
(
15
).
required
(),
userId
:
Joi
.
string
().
email
().
max
(
50
).
required
(),
password
:
Joi
.
string
().
required
()
})
...
...
Please
register
or
login
to post a comment