Digital Craftsman
Subscribe
php

Reset contao user password with FTP access only

  • Christian Kolb

Christian Kolb

Jan 23, 2014 • 1 min read

Lost every single login to a contao project? Here is a little gist to reset a user password when knowing the username and having FTP access.

Reset contao user password with FTP access
only

Sign up for more like this.

Enter your email
Subscribe
Type cast value objects in twig

Type cast value objects in twig

When working with value objects, it might make sense to typecast them within a twig template. Out of the box twig doesn't offer typecasting. But it's quite easy to offer it with a custom filter. Here is an example how the most basic castings would look like: <?php declare(

  • Christian Kolb
Christian Kolb Apr 19, 2021 • 1 min read
Switch between major composer versions

Switch between major composer versions

We all should be on composer 2 now for a while, but apparently not everybody is yet. It's very simple to upgrade, but also to downgrade. Upgrade with: composer self-update --2And the downgrade is basically the same: composer self-update --1I guess this will stay the same for the next major

  • Christian Kolb
Christian Kolb Apr 12, 2021 • 1 min read
Find duplicate rows in table with SQL

Find duplicate rows in table with SQL

There are constructs where you shouldn't have duplicate column combinations in a table. Best protection against it, is a combined unique constraint. But depending on when you join the project, it might already be to late and you might already have those duplicates in your table. It's possible to find

  • Christian Kolb
Christian Kolb Mar 29, 2021 • 1 min read
Digital Craftsman © 2021
  • Datenschutz
  • Impressum
Powered by Ghost