Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 웹기초
- GIT
- 워게임
- bootstrap
- node
- 웹개발
- 포렌식
- 자바문제풀이
- 써니나타스
- 포렌식워게임
- 이진탐색트리
- 자바기초
- 이진트리
- 그래프
- wargame.kr
- 자료구조
- node.js
- 뷰
- 워게임추천
- 자바
- nodeJS
- 웹해킹
- mongoose
- materialize
- Express
- NavBar
- gitbash
- CTF
- 웹해킹기초
- MongoDB
Archives
- Today
- Total
목록forin (1)
보안 전공생의 공부

회원가입은 회원(user) model을 만들고, 회원 데이터를 생성해(CRUD-create) DB에 저장하면 된다. 다만 주의해야할 점이 비밀번호가 추가된다는 점이다. // models/User.js const mongoose = require('mongoose'); // schema const userSchema = mongoose.Schema({ username:{type:String, required:[true,'Username is required!'], unique:true}, password:{type:String, required:[true,'Password is required!'], select:false}, name:{type:String, required:[true,'Name is r..
WEB/Node
2021. 11. 16. 14:08