[SOLVED] Cannot login with DRONE_OPEN=false

I currently cannot login into drone if the registration is closed, even when i am listed as a admin. I can login into gogs with myuser but drone gives this error on the logs

level=error msg="cannot register myuser. registration closed"

And the url ends with login/error?code=access_denied

I am using the following environment:

DRONE_OPEN=false
DRONE_GOGS=true
DRONE_GOGS_PRIVATE_MODE=True
DRONE_ADMIN=̣myuser
DRONE_GOGS_URL=http://git.example.com
DRONE_HOST=http://drone.example.com
DRONE_SECRET=mysecret
$ sudo docker inspect -f "{{ .Config.Env }}" drone_server_1
[DRONE_HOST=http://drone.example.com DRONE_GOGS=true DRONE_SECRET=mysecret DRONE_GOGS_PRIVATE_MODE=True DRONE_ADMIN=̣myuser DRONE_GOGS_URL=http://git.example.com PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin DATABASE_DRIVER=sqlite3 DATABASE_CONFIG=/var/lib/drone/drone.sqlite GODEBUG=netdns=go XDG_CACHE_HOME=/var/lib/drone]

Any ideas?

Well, after medding with the source code and hexprinting the login and env variables i found that i had an invisible character on my environment template (COMBINING DOT BELOW according to google)

-DRONE_ADMIN=̣{{ gogs_admin_name }}
+DRONE_ADMIN={{ gogs_admin_name }}

So this is solved.