Good evening. I inherit a Magento from my webmster that can no longer deal with it. I know little about programming, but I can do something about it. For several days I would like to enter the admin but I will return this string

"You have not signed in correctly or your account is temporarily disabled"

Someone can help me ? I have access to the database via phpmyadmin

Thanks in advance !

Buona sera. Eredito un Magento dal mio webmster che non può più occuparsene. So poco di programmazione, ma qualcosa riesco a farlo. Da diversi giorni vorrei entrare in admin ma mi restituisce questa stringa

"Non hai eseguito l'accesso correttamente o il tuo account è temporaneamente disattivato"

Qualcuno potrebbe aiutarmi.Ho l'accesso al database mediante il phpmyadmin Grazie in anticipo !

  • Magento version? – Aman Alam Jan 14 '19 at 8:26
  • I think Magento2 – Gaia Jan 14 '19 at 8:32
  • do you have terminal access – Aman Alam Jan 14 '19 at 8:37

Here is the way to release lock from myslq/phpmyadmin

Select database and run below mentioned query make sure replace adminusername with your admin user name. Also check if there is any table prefix add it before table admin_user so it should be look like tableprefix_admin_user

UPDATE `admin_user` set lock_expires=NULL,first_failure=NULL,failures_num=0 where username="adminusername"

2nd option from CLI

you can unlock admin user via terminal/ssh/CLI by running below mentioned command from magento root. Make sure replace adminusername with your admin user name.

php bin/magento admin:user:unlock adminusername
| improve this answer | |
  • Before doing the recommended actions I would like to clear the cache. Can you tell me how can I do? thank you very much for your help – Gaia Jan 14 '19 at 9:59
  • Ahh sorry for the late reply there is no easy way to clear cache from out side however if you have cpanel you can remove folder cache in var directory – Aman Alam Jan 14 '19 at 12:10
  • You're very kind. Now I try. I'll let you know – Gaia Jan 14 '19 at 12:27
  • If its work please mark answer as accepted by clicking on tick mark and upvote it if answer helped you – Aman Alam Jan 14 '19 at 13:09
  • Forgive me yesterday I could not continue working. Now I ask you I have to delete the cache folder or just its contents – Gaia Jan 15 '19 at 7:58

welcome to Magento SE.

Make sure you put the proper credentials in order to access the account. If you are sure, there can be an option that the person which gave you the credentials are wrong.

If you have SSH access, you can create a user in order to log in to the admin panel using this command:

php bin/magento admin:user:create --admin-user='new-admin' --admin-password='!admin123!' --admin-email='info@domain.com' --admin-firstname='Jon' --admin-lastname='Doe'

| improve this answer | |
  • i don't know :-( – Gaia Jan 14 '19 at 10:01

enter image description here

ftp - /public_html/var/cache >> image required Aman Alam

| improve this answer | |
  • correct need to delete content inside cache but deleting it from ftp will take to long time you much need cPanel on directly clear cache from CLI by applying command php bin/magento cache:clean – Aman Alam Jan 15 '19 at 9:08
  • Hi Aman Alam sorry for my absence. I deleted the cache var/cache via FTP I do not have CLI access Now I proceed to update passwords – Gaia Jan 17 '19 at 10:24
  • You can you can clear lock of your admin user from phpmyadmin by running below mentioned query – Aman Alam Jan 17 '19 at 10:30

enter image description here

Aman Alam .... Is this where I have to run the command? Excuse my anxiety but I do not want to make mistakes

| improve this answer | |
  • Yes but but replace adminusername with your admin user name – Aman Alam Jan 17 '19 at 14:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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