Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
16b910ae
authored
Nov 25, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
cookie安全性
parent
81898104
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
.env
app/Http/Controllers/Api/AuthApiController.php
config/mail.php
.env
View file @
16b910ae
...
@@ -7,7 +7,7 @@ APP_URL=http://localhost
...
@@ -7,7 +7,7 @@ APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_CONNECTION=mysql
DB_HOST=
master.db2.liexindev.me
DB_HOST=
192.168.1.238
DB_PORT=3306
DB_PORT=3306
DB_DATABASE=semour
DB_DATABASE=semour
DB_USERNAME=semour
DB_USERNAME=semour
...
@@ -27,7 +27,7 @@ MAIL_MAILER=smtp
...
@@ -27,7 +27,7 @@ MAIL_MAILER=smtp
MAIL_FROM_ADDRESS="system@semour.com"
MAIL_FROM_ADDRESS="system@semour.com"
MAIL_FROM_NAME="semour.com"
MAIL_FROM_NAME="semour.com"
MAIL_DRIVER=smtp
MAIL_DRIVER=smtp
MAIL_HOST='smtp.
semour
.com'
MAIL_HOST='smtp.
mxhichina
.com'
MAIL_PORT=25
MAIL_PORT=25
MAIL_FROM='semour.com'
MAIL_FROM='semour.com'
MAIL_USERNAME='system@semour.com'
MAIL_USERNAME='system@semour.com'
...
...
app/Http/Controllers/Api/AuthApiController.php
View file @
16b910ae
...
@@ -62,8 +62,7 @@ class AuthApiController extends Controller
...
@@ -62,8 +62,7 @@ class AuthApiController extends Controller
if
(
$this
->
attemptLogin
(
$request
))
{
if
(
$this
->
attemptLogin
(
$request
))
{
$request
->
session
()
->
regenerate
();
$request
->
session
()
->
regenerate
();
$cookie
=
Cookie
::
make
(
'sem_email'
,
Auth
::
user
()
->
email
,
config
(
'session.lifetime'
),
null
,
null
,
false
,
$cookie
=
Cookie
::
make
(
'sem_email'
,
Auth
::
user
()
->
email
,
config
(
'session.lifetime'
));
false
);
Cookie
::
queue
(
$cookie
);
Cookie
::
queue
(
$cookie
);
$userIdCookie
=
Cookie
::
make
(
'sem_user_id'
,
Auth
::
user
()
->
id
,
config
(
'session.lifetime'
),
null
,
null
,
false
,
$userIdCookie
=
Cookie
::
make
(
'sem_user_id'
,
Auth
::
user
()
->
id
,
config
(
'session.lifetime'
),
null
,
null
,
false
,
false
);
false
);
...
...
config/mail.php
View file @
16b910ae
...
@@ -107,4 +107,5 @@ return [
...
@@ -107,4 +107,5 @@ return [
],
],
],
],
];
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment