Skip to content
Snippets Groups Projects
Commit a67962b0 authored by Bolke de Bruin's avatar Bolke de Bruin
Browse files

Fix no username issues

parent 8e117ad0
Branches
Tags
No related merge requests found
......@@ -94,7 +94,7 @@ type ClientConfig struct {
// kept for backwards compatibility
UsernameTemplate string `koanf:"usernametemplate"`
SplitUserDomain bool `koanf:"splituserdomain"`
NoUsername string `koanf:"nousername"`
NoUsername bool `koanf:"nousername"`
}
func ToCamel(s string) string {
......
......@@ -211,7 +211,7 @@ func (h *Handler) HandleDownload(w http.ResponseWriter, r *http.Request) {
}
}
if !NoUsername {
if !h.rdpOpts.NoUsername {
d.Settings.Username = render
if domain != "" {
d.Settings.Domain = domain
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment