mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-31 04:59:24 +08:00
@@ -91,8 +91,8 @@ func InitVariables(store VariableStore) error {
|
||||
|
||||
// GetSecretKey returns the current secret key
|
||||
func GetSecretKey(store VariableStore) (string, error) {
|
||||
if globalConfig.Server.SecretKey != nil {
|
||||
return *globalConfig.Server.SecretKey, nil
|
||||
if globalConfig.General.SecretKey != nil {
|
||||
return *globalConfig.General.SecretKey, nil
|
||||
}
|
||||
|
||||
generatedKey, err := utility.GenerateSecretKey()
|
||||
|
||||
Reference in New Issue
Block a user