mirror of https://github.com/poanetwork/gecko.git
don't require strong auth password if auth disabled
This commit is contained in:
parent
a4ed688533
commit
b3b477c7d9
|
@ -411,7 +411,8 @@ func init() {
|
|||
// HTTP:
|
||||
Config.HTTPHost = *httpHost
|
||||
Config.HTTPPort = uint16(*httpPort)
|
||||
if Config.APIRequireAuthToken && Config.APIAuthPassword == "" {
|
||||
if Config.APIRequireAuthToken {
|
||||
if Config.APIAuthPassword == "" {
|
||||
errs.Add(errors.New("api-auth-password must be provided if api-require-auth is true"))
|
||||
return
|
||||
}
|
||||
|
@ -419,6 +420,7 @@ func init() {
|
|||
errs.Add(errors.New("api-auth-password is not strong enough. Add more characters"))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// Logging:
|
||||
if *logsDir != "" {
|
||||
|
|
Loading…
Reference in New Issue