# Stuck at first login

**URL:** <https://community.traefik.io/t/stuck-at-first-login/8712>\
**Category:** Traefik v2\
**Tags:** docker, middleware\
**Created:** [November 23, 2020, 7:50pm UTC](https://community.traefik.io/t/stuck-at-first-login/8712 "2020-11-23T19:50:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glacierdk](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@Glacierdk](https://community.traefik.io/u/Glacierdk)\
**Post date:** [November 23, 2020, 7:50pm UTC](https://community.traefik.io/t/stuck-at-first-login/8712/1 "2020-11-23T19:50:47Z")

</div>

Hi

I brand new to using Traefik, and im having some issues with the setup.

I have used this guide as a reference: [https://www.digitalocean.com/community/tutorials/how-to-use-traefik-v2-as-a-reverse-proxy-for-docker-containers-on-ubuntu-20-04](https://www.digitalocean.com/community/tutorials/how-to-use-traefik-v2-as-a-reverse-proxy-for-docker-containers-on-ubuntu-20-04)

Everything has gone as planed until i have to login to the dashboard. When i access the dashboard im prompted for credentials, but when i type in the credentials i am the login fails (as if i typed the wrong password).  
I tried creating a new password, deleting the whole config and doing it all over, however nothing helps.

What am i doing wrong?

traefik.toml:

```auto
[entryPoints]
  [entryPoints.web]
    address = ":80"
    [entryPoints.web.http.redirections.entryPoint]
      to = "websecure"
      scheme = "https"

  [entryPoints.websecure]
    address = ":443"

[api]
  dashboard = true

[certificatesResolvers.lets-encrypt.acme]
  email = "email@domain.com"
  storage = "acme.json"
  [certificatesResolvers.lets-encrypt.acme.tlsChallenge]

[providers.docker]
  watch = true
  network = "web"

[providers.file]
  filename = "traefik_dynamic.toml"

[accessLog]
  filePath = "access.log"
  bufferingSize = 100

```

traefik\_dynamic.toml:

```auto
[http.middlewares.simpleAuth.basicAuth]
  users = [
    "admin:$apr1$9v.jkylR$OV1XQnqcqShtSed4K3did1"
  ]

[http.routers.api]
  rule = "Host(`monitor.domain.com`)"
  entrypoints = ["websecure"]
  middlewares = ["simpleAuth"]
  service = "api@internal"
  [http.routers.api.tls]
    certResolver = "lets-encrypt"

```

---

<div class="post-metadata">

**Author:** ![kevinpollet](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/kevinpollet/32/1755_2.png) [@kevinpollet](https://community.traefik.io/u/kevinpollet)\
**Post date:** [December 2, 2020, 8:45am UTC](https://community.traefik.io/t/stuck-at-first-login/8712/2 "2020-12-02T08:45:55Z")

</div>

Hello @Glacierdk,

Thanks for your interest in Traefik!

I tried your configuration with a new password and everything was working fine. When I access the dashboard the browser open a prompt for the credentials and the login succeed.

I suspect that your password is not well hashed. The password must be hashed using MD5, SHA1, or BCrypt as explained in the following [documentation](https://doc.traefik.io/traefik/middlewares/basicauth/#general).

Have you solved your issue?

Hope this helps.
