Reset the password for user in Contao database

Recently I forgot the password of my Contao ( admin backend user. To regain control of the content management system, I had to reset the password for user in Contao database.

All backend users and their credentials are stored in the Contao database in the table tl_user. The password is saved in the field password via a SHA1 hash. That’s why I used my little Python script described under to generate a new SHA1 Password hash and inserted the value into the password field via phpMyAdmin.

For example, this is the hash for “AskSheldon”:


That’s it! Afterwards I was able to login again.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.