Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
c2a66928
Unverified
Commit
c2a66928
authored
Mar 10, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔒
Fix #12702
parent
2cc48d2b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
src/main/java/org/b3log/solo/util/Solos.java
src/main/java/org/b3log/solo/util/Solos.java
+3
-3
src/main/resources/latke.properties
src/main/resources/latke.properties
+1
-5
src/main/resources/log4j.properties
src/main/resources/log4j.properties
+2
-1
No files found.
src/main/java/org/b3log/solo/util/Solos.java
View file @
c2a66928
...
...
@@ -54,7 +54,7 @@ import java.util.ResourceBundle;
* Solo utilities.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.7.0.
1, Mar 3
, 2019
* @version 1.7.0.
2, Mar 10
, 2019
* @since 2.8.0
*/
public
final
class
Solos
{
...
...
@@ -126,13 +126,13 @@ public final class Solos {
static
{
String
cookieNameConf
=
Latkes
.
getLatkeProperty
(
"cookieName"
);
if
(
StringUtils
.
isBlank
(
cookieNameConf
))
{
cookieNameConf
=
"
b3log-latke
"
;
cookieNameConf
=
"
solo
"
;
}
COOKIE_NAME
=
cookieNameConf
;
String
cookieSecret
=
Latkes
.
getLatkeProperty
(
"cookieSecret"
);
if
(
StringUtils
.
isBlank
(
cookieSecret
))
{
cookieSecret
=
"Beyond"
;
cookieSecret
=
RandomStringUtils
.
randomAlphanumeric
(
8
)
;
}
COOKIE_SECRET
=
cookieSecret
;
...
...
src/main/resources/latke.properties
View file @
c2a66928
...
...
@@ -18,7 +18,7 @@
#
# Description: B3log Latke configurations.
# Version: 1.6.0.
0, Mar 1
, 2019
# Version: 1.6.0.
1, Mar 10
, 2019
# Author: Liang Ding
#
...
...
@@ -26,10 +26,6 @@
# Browser visit protocol
serverScheme
=
http
#### Cookie ####
cookieName
=
solo
cookieSecret
=
Beyond
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
src/main/resources/log4j.properties
View file @
c2a66928
...
...
@@ -18,7 +18,7 @@
#
# Description: Solo logging configurations.
# Version: 1.1.0.
9, Oct 7, 2018
# Version: 1.1.0.
10, Mar 10, 2019
# Author: <a href="http://88250.b3log.org">Liang Ding</a>
# Author: <a href="http://www.wanglay.com">Lei Wang</a>
#
...
...
@@ -29,6 +29,7 @@ log4j.logger.org.b3log.solo=INFO
log4j.logger.org.b3log.latke
=
WARN
log4j.logger.org.b3log.latke.util.freemarker.Templates
=
ERROR
log4j.logger.org.b3log.latke.repository.jdbc.util
=
WARN
log4j.logger.org.b3log.latke.util.Crypts
=
ERROR
log4j.logger.org.eclipse.jetty
=
WARN
log4j.logger.freemarker
=
WARN
...
...
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