김대철

CHORE: 보안키 설정

......@@ -5,8 +5,7 @@ var bodyParser = require("body-parser");
var { OAuth2Client } = require("google-auth-library");
const CLIENT_ID =
"94679084723-s5f0686p2porp9mkakrp1p89a48n24nj.apps.googleusercontent.com";
const CLIENT_ID = "발급받은 ClientID";
var client = new OAuth2Client(CLIENT_ID);
var mysql = require("mysql");
const session = require("express-session");
......@@ -16,7 +15,7 @@ router.use(bodyParser.urlencoded({ extended: false })); //url인코딩 x
router.use(bodyParser.json()); //json방식으로 파싱
router.use(
session({
secret: "원하는암호", // 암호화
secret: "원하는 암호", // 암호화
resave: false,
saveUninitialized: true,
store: new FileStore(),
......@@ -24,7 +23,7 @@ router.use(
);
var connection = mysql.createConnection({
host: "IP주소 입력 (localhost 또는 AWS 서버 주소)",
host: "IP주소 입력 (localhost 또는 서버 주소)",
user: "계정 입력",
password: "암호 입력",
database: "스키마이름 입력",
......
{"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
......@@ -137,16 +137,6 @@
>Logout<span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item active">
<a
class="nav-link"
style="color: #ffffff"
href="javascript:void(0);"
onclick="recommend();"
>Recommend
<span class="sr-only">(current)</span>
</a>
</li>
</ul>
</div>
</nav>
......