Login problem unauthorized: incorrect username or password

I m getting this error:
[vagrant@localhost target]$ sudo docker login --username=ahmedCharfeddine99
Password:
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password
I am sure that my username and my password are correct but i can’t login.
did anyone has a solution to that.

the solution was to use the command docker login without specifing usrname and password
the system will ask u for the username after that the password
It works for me

--username should also work, but you wrote an uppercase C in your username. I guess this was the problem.