chore: check if SESSION_SECRET equals to random_string
This commit is contained in:
parent
67c64e71c8
commit
b7fcb319da
@ -36,7 +36,11 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if os.Getenv("SESSION_SECRET") != "" {
|
if os.Getenv("SESSION_SECRET") != "" {
|
||||||
SessionSecret = os.Getenv("SESSION_SECRET")
|
if os.Getenv("SESSION_SECRET") == "random_string" {
|
||||||
|
SysError("SESSION_SECRET is set to an example value, please change it to a random string.")
|
||||||
|
} else {
|
||||||
|
SessionSecret = os.Getenv("SESSION_SECRET")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if os.Getenv("SQLITE_PATH") != "" {
|
if os.Getenv("SQLITE_PATH") != "" {
|
||||||
SQLitePath = os.Getenv("SQLITE_PATH")
|
SQLitePath = os.Getenv("SQLITE_PATH")
|
||||||
|
Loading…
Reference in New Issue
Block a user