Skip to content

Instantly share code, notes, and snippets.

Created January 23, 2014 14:15
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
define('BYPASS_TOKEN_CHECK', true);
class Reset extends Frontend {
public function __construct()
public function run() {
$username = "yourUsername";
$newPassword = "8e0107bf1c7fbeef6538dff7173aa458e7dd585e:8c37627a0e2c606189e7765"; // "reset123"
UPDATE tl_user
SET password = ?
WHERE username = ?
$reset = new Reset();
Copy link

Cool! Mit folgender Änderung wird das Passwort dynamisch:

$newPassword = sha1("reset123");

Das ganze liesse sich sehr praktisch auch ausbauen, z.B. dass er zuerst prüft ob der Benutzername vorhanden ist und dann ggf. aktualisiert.

Copy link

bondt commented Feb 13, 2014

Thanks, I forked you at :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment