김대철

CHORE: 보안키 설정

...@@ -5,8 +5,7 @@ var bodyParser = require("body-parser"); ...@@ -5,8 +5,7 @@ var bodyParser = require("body-parser");
5 5
6 var { OAuth2Client } = require("google-auth-library"); 6 var { OAuth2Client } = require("google-auth-library");
7 7
8 -const CLIENT_ID = 8 +const CLIENT_ID = "발급받은 ClientID";
9 - "94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com";
10 var client = new OAuth2Client(CLIENT_ID); 9 var client = new OAuth2Client(CLIENT_ID);
11 var mysql = require("mysql"); 10 var mysql = require("mysql");
12 const session = require("express-session"); 11 const session = require("express-session");
...@@ -16,7 +15,7 @@ router.use(bodyParser.urlencoded({ extended: false })); //url인코딩 x ...@@ -16,7 +15,7 @@ router.use(bodyParser.urlencoded({ extended: false })); //url인코딩 x
16 router.use(bodyParser.json()); //json방식으로 파싱 15 router.use(bodyParser.json()); //json방식으로 파싱
17 router.use( 16 router.use(
18 session({ 17 session({
19 - secret: "원하는암호", // 암호화 18 + secret: "원하는 암호", // 암호화
20 resave: false, 19 resave: false,
21 saveUninitialized: true, 20 saveUninitialized: true,
22 store: new FileStore(), 21 store: new FileStore(),
...@@ -24,7 +23,7 @@ router.use( ...@@ -24,7 +23,7 @@ router.use(
24 ); 23 );
25 24
26 var connection = mysql.createConnection({ 25 var connection = mysql.createConnection({
27 - host: "IP주소 입력 (localhost 또는 AWS 서버 주소)", 26 + host: "IP주소 입력 (localhost 또는 서버 주소)",
28 user: "계정 입력", 27 user: "계정 입력",
29 password: "암호 입력", 28 password: "암호 입력",
30 database: "스키마이름 입력", 29 database: "스키마이름 입력",
......
1 +{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"__lastAccess":1623049062312,"user":{"email":"kdc9619@khu.ac.kr","picture":"https://lh3.googleusercontent.com/a/AATXAJyP14ipRboJZ8T5-oNS3sRp4CG8wKCEwVABQ5G_=s96-c","nickname":"dckat","age":26,"gender":"male"}}
...\ No newline at end of file ...\ No newline at end of file
...@@ -137,16 +137,6 @@ ...@@ -137,16 +137,6 @@
137 >Logout<span class="sr-only">(current)</span></a 137 >Logout<span class="sr-only">(current)</span></a
138 > 138 >
139 </li> 139 </li>
140 - <li class="nav-item active">
141 - <a
142 - class="nav-link"
143 - style="color: #ffffff"
144 - href="javascript:void(0);"
145 - onclick="recommend();"
146 - >Recommend
147 - <span class="sr-only">(current)</span>
148 - </a>
149 - </li>
150 </ul> 140 </ul>
151 </div> 141 </div>
152 </nav> 142 </nav>
......