Merge pull request #2362 from twistlock/populate_htpasswd
Create and populate htpasswd file if missing
This commit is contained in:
@@ -307,7 +307,7 @@ func NewApp(ctx context.Context, config *configuration.Configuration) *App {
|
||||
|
||||
authType := config.Auth.Type()
|
||||
|
||||
if authType != "" {
|
||||
if authType != "" && !strings.EqualFold(authType, "none") {
|
||||
accessController, err := auth.GetAccessController(config.Auth.Type(), config.Auth.Parameters())
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("unable to configure authorization (%s): %v", authType, err))
|
||||
|
Reference in New Issue
Block a user