# \[SOLVED\] Cannot login with DRONE\_OPEN=false

**URL:** <https://drone.discourse.group/t/solved-cannot-login-with-drone-open-false/5799>\
**Category:** Drone Support\
**Created:** [January 30, 2018, 4:59pm UTC](https://drone.discourse.group/t/solved-cannot-login-with-drone-open-false/5799 "2018-01-30T16:59:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codestation](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/codestation/32/3919_2.png) [@codestation](https://drone.discourse.group/u/codestation)\
**Post date:** [January 30, 2018, 4:59pm UTC](https://drone.discourse.group/t/solved-cannot-login-with-drone-open-false/5799/1 "2018-01-30T16:59:12Z")

</div>

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

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

```

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

I am using the following environment:

```auto
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

```

```auto
$ 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?

---

<div class="post-metadata">

**Author:** ![codestation](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/codestation/32/3919_2.png) [@codestation](https://drone.discourse.group/u/codestation)\
**Post date:** [January 30, 2018, 5:48pm UTC](https://drone.discourse.group/t/solved-cannot-login-with-drone-open-false/5799/2 "2018-01-30T17:48:09Z")

</div>

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)

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

```

So this is solved.
