When I install Magento 2, first of all, its screen was blank, when I resolve that problem then I am unable to login to admin page, I give my name and password again and again but its give me error "You did not sign incorrectly or your account is temporarily disabled." and show some other admin and password enter image description here

Please help me resolve this problem, and also in code of validator it show me some error like enter image description here

2 Answers 2


Run below command in terminal and change admin user name and pass.

php bin/magento admin:user:create --admin-user="admin" --admin-password="admin123" --admin-email="your_email_address" --admin-firstname="your_firstname" --admin-lastname="your_lastname"

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

php bin/magento cache:clean

And now check with

username: admin

password: admin123

After done update your username and password as per you want.

  • Could not open input file: bin/magento sir it giving me this error in cmd screen Commented Jul 5, 2019 at 7:22
  • 1
    You have to run this command: "php bin/magento cache:clean" from your project root directory.
    – Ravi Soni
    Commented Jul 5, 2019 at 7:24
  • can u guide me4 Commented Jul 5, 2019 at 7:26
  • 1
    First of all did you run first command? for change your username and password ?
    – Ravi Soni
    Commented Jul 5, 2019 at 7:27
  • 1
    /var/www/html/magento this magento is your root folder
    – Ravi Soni
    Commented Jul 5, 2019 at 8:50

I have read the answer of Ravi and your comments. I cannot add comment so I will post this answer.

Make sure you have done these things in order to make the view works properly:

  1. Make sure there's a .htaccess file inside /pub/static folder.
  2. Set permission of /pub/static folder to writable permission (0777). Go to your Magento root folder then type this command: chmod -R 0777 pub/static
  3. Deploy your view: bin/magento setup:static-content:deploy -f
  4. Press Ctrl + F5 on the Magento page in your browser to refresh the page view.

Hope this helps!

  • where is magento root folder Commented Jul 5, 2019 at 10:33
  • Where do you install your magento website? The magento root folder is the folder contain index.php and .htaccess file.It's the base directory of magento website.
    – Jamy
    Commented Jul 5, 2019 at 10:43
  • then how i can run command on this Commented Jul 5, 2019 at 10:46
  • can you tell me where to run these command Commented Jul 5, 2019 at 11:42
  • If you using Windows, let access your magento server's SSH using Putty, then go to the magento root folder and run all the commands above. If you get error permission message with bin/magento command, try this command chmod a+x bin/magento to solve that problem.
    – Jamy
    Commented Jul 5, 2019 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.