Commit 5dc293d1 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Trim password and username

parent 8dc9225b
Pipeline #25196 passed with stages
in 2 minutes and 26 seconds
......@@ -2,6 +2,7 @@ package main
import (
"fmt"
"strings"
"github.com/BurntSushi/toml"
"gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/pkg/memostream"
"log"
......@@ -123,8 +124,8 @@ func LoadConfig(filepath string) Config {
}
conf.ResolverDBMySQL.Dsn = fmt.Sprintf(
"%s:%s@tcp(%s:%s)/%s",
mariadb_user,
mariadb_password,
strings.Trim(mariadb_user, "\n"),
strings.Trim(mariadb_password, "\n"),
mariadb_host,
mariadb_port,
mariadb_database,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment