Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
70eaef81
Commit
70eaef81
authored
Nov 14, 2022
by
Jiwon Yoon
Browse files
change
parent
b4873b7c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/models/user.model.ts
View file @
70eaef81
...
...
@@ -22,7 +22,7 @@ const schema = new Schema<IUser>(
validate
:
[
validateEmail
,
"
이메일을 입력해주세요
"
],
},
name
:
{
type
:
String
},
password
:
{
type
:
String
,
required
:
true
,
select
:
false
},
password
:
{
type
:
String
,
select
:
false
},
role
:
{
type
:
Schema
.
Types
.
ObjectId
,
ref
:
"
Role
"
},
avatar
:
{
type
:
Schema
.
Types
.
ObjectId
,
ref
:
"
FileInfo
"
},
},
...
...
src/routes/auth.route.ts
View file @
70eaef81
...
...
@@ -5,7 +5,7 @@ const router = express.Router();
router
.
route
(
"
/signup
"
).
post
(
authCtrl
.
signup
);
router
.
route
(
"
/login
"
).
post
(
authCtrl
.
login
);
router
.
route
(
"
/login/kakao
"
).
get
(
authCtrl
.
kakaoLogin
);
//
router.route("/login/kakao").get(authCtrl.kakaoLogin);
router
.
route
(
"
/logout
"
).
get
(
authCtrl
.
logout
);
router
.
route
(
"
/oauth/kakao
"
).
post
(
authCtrl
.
kakaoAuthenticate
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment