Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebBack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websystem
WebBack
Commits
e55e7a77
Commit
e55e7a77
authored
3 months ago
by
tpgus2603
Browse files
Options
Downloads
Patches
Plain Diff
프론트에서 생기는 로그인 오류 수정
parent
1e9d9192
No related branches found
Branches containing commit
No related tags found
1 merge request
!42
[#25] 배포코드 master브랜치로 이동
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.js
+14
-8
14 additions, 8 deletions
app.js
controllers/friendController.js
+1
-1
1 addition, 1 deletion
controllers/friendController.js
with
15 additions
and
9 deletions
app.js
+
14
−
8
View file @
e55e7a77
...
...
@@ -25,21 +25,27 @@ app.use(
credentials
:
true
,
})
);
// 미들웨어 설정
app
.
use
(
express
.
json
());
app
.
use
(
express
.
urlencoded
({
extended
:
false
}));
// 세션 설정
//
app
.
use
(
session
({
secret
:
'
your
_session_
secret
'
,
secret
:
'
your
-
secret
-key
'
,
resave
:
false
,
saveUninitialized
:
false
,
rolling
:
true
,
cookie
:
{
httpOnly
:
true
,
secure
:
false
,
maxAge
:
60
*
60
*
1000
,
// 1시간
sameSite
:
'
lax
'
,
},
})
);
// 미들웨어 설정
app
.
use
(
express
.
json
());
app
.
use
(
express
.
urlencoded
({
extended
:
false
}));
// Passport 초기화 및 세션 연결
app
.
use
(
passport
.
initialize
());
app
.
use
(
passport
.
session
());
...
...
This diff is collapsed.
Click to expand it.
controllers/friendController.js
+
1
−
1
View file @
e55e7a77
...
...
@@ -4,7 +4,7 @@ const { User } = require('../models');
class
friendController
{
/**
* 친구 요청 보내기
* 클라이언트는 userId와 요청을 보낼 사용자의 email을 전송
* 클라이언트는 userId와 요청을 보낼 사용자의 email을
body에
전송
*/
async
sendFriendRequest
(
req
,
res
,
next
)
{
const
{
userId
,
email
}
=
req
.
body
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment