Inflearn Community Q&A
loginSuccess : false만 나오네요
Written on
·
355
0
혼자서 하다하다 도저히 모르곘어서 여쭤봅니다.
1. index.js
2. postman
3. git
https://github.com/wd48/boilerPlate_node.git
> 어느부분이 틀렸는지 감도 안오네요 ㅠㅠ
답변 기다릴게요. 감사합니다.
노드리액트기초강의nodejsreact
Answer 3
0
0
0
John Ahn
Instructor
안녕하세요
답변이 늦어서 죄송합니다 ~
유저 스키마 만드는 부분을
const userSchema = mongoose.Schema({
name: {
type: String,
maxlength: 50
},
email: {
type: String,
trim: true,
unique: 1
},
password: {
type: String,
minlength: 5
},
lastname: {
type: String,
maxlength: 50
},
role: {
type: Number,
default: 0
},
image: String,
token: {
type: String
},
tokenExp: {
type: Number
}
})
이렇게 해주세요 ~ 수고하세요 ~





